水晶报表高手请指点一下!

yellowhwb 2003-09-16 08:17:25
在WebApplication中,我要在程序里向报表中的TextObject里填写东西,我看了别人的代码,如下:
objTName=(TextObject)this.objReprot.ReportDefinition.Sections[2].ReportObjects[26];
objTName.Text=strName;
请问Sections[2]和ReportObjects[26]方括号里的索引号是如何确定的?我看了半天也没找到方法。虽然我知道方括号里也能填ID,但我就想知道索引号是如何确定的!
...全文
26 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhongwanli 2003-09-17
  • 打赏
  • 举报
回复
同意 hhhrrrttt(臭咸带鱼_WQ)

真的做报表用 "数据集" 来做也可以呀!

isonme 2003-09-17
  • 打赏
  • 举报
回复
up
wjhs 2003-09-17
  • 打赏
  • 举报
回复
up
hhhrrrttt 2003-09-17
  • 打赏
  • 举报
回复
ReportDocument oRpt = new ReportDocument();
......

TextObject txtObject1;// 报表的文本对象
txtObject1=oRpt.ReportDefinition.ReportObjects["Text4"] as TextObject;//找到文本对象
if (txtObject1!= null)
{
txtObject1.Text = "哈哈哈";//赋值
}


好运 2003-09-16
  • 打赏
  • 举报
回复
ms-help://MS.VSCC/MS.MSDNVS.2052/crystlrf/html/crlrfparameterfieldsclassaddmethodtopic.htm

110,561

社区成员

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

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

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