水晶报表的列,如何控制呢?
ReportDocument rdt = new ReportDocument();
string sPath = Server.MapPath("CrystalReport3.rpt");
rdt.Load(sPath);
rdt.ReportDefinition.Sections[1].ReportObjects[0].Width.ToString();
rdt.ReportDefinition.Sections[2].ReportObjects[0].Width;
这几句就能得到水晶报表列的对象,但很可惜的是将其转换成列对象后,怎样才能对其进行操作呢?
((FieldObject)rdt.ReportDefinition.Sections[2].ReportObjects[0]);
我要如 visible=false; 改变width是可以实行,width=0;但是它后面的列是不会向前移动,是否要用算法来控制,有没有朋友有这方面的例子呢?
问题点数:20、回复次数:2Top
1 楼tanjy(tanjy)回复于 2006-07-04 09:45:58 得分 0
没办法吗?
好象真的没办法,对水晶报表列的动态生成!
crystalReport1 cry1 = new crystalReport1();
cry1.Section2
没有ADD方法!
FieldObject又没有parent之类的方法。
真不知它自己是如何加载上去的!Top
2 楼lincoin(一笑)回复于 2006-07-31 11:09:35 得分 0
关注,好像不好解决Top




