请教水晶报表的问题!

yellowhwb 2003-09-17 08:03:58
在WebApplication中,我要在程序里向报表中的TextObject里填写东西,我看了别人的代码,如下:
objTName=(TextObject)this.objReprot.ReportDefinition.Sections[2].ReportObjects[26];
objTName.Text=strName;
请问Sections[2]和ReportObjects[26]方括号里的索引号是如何确定的?我看了半天也没找到方法。虽然我知道方括号里也能填ID(比如ReportObjects["Text8"]),但我就想知道索引号是如何确定的!
...全文
52 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
rwdx 2003-09-18
  • 打赏
  • 举报
回复
up
yellowhwb 2003-09-18
  • 打赏
  • 举报
回复
reportobjects的index你好像说的不对!
shellmark 2003-09-18
  • 打赏
  • 举报
回复
sections可以理解成区域吧?
就是报表中从上至下report header, page header, detail, report footer, page footer,当然如果你有group的话section就还会多。

reportobjects应该是从左到右的控件顺序
shellmark 2003-09-18
  • 打赏
  • 举报
回复
With poCRReport
For intSecCount = 1 To .Sections.Count
With .Sections(CInt(intSecCount)).ReportObjects
For intObjCount = 1 To .Count
.Item(CInt(intObjCount)).ConditionFormula(65) = "Chr(9)"
Next
End With
Next
End With

原来用VB写的程序,用在web报表上遍利所有控件,去掉控件的tooltip提示
不知道对你有没有用
wjhs 2003-09-18
  • 打赏
  • 举报
回复
snof说得有道理。
雪狼1234567 2003-09-18
  • 打赏
  • 举报
回复
Sections就是你报表的节数,如有页眉的话,页眉就是0,其它的类同

110,534

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧