作者:mayz 来源:慧都控件网 浏览:Loading... 日期:2013-02-26
问题描述:
如何将StimuReports.Net程序里的数据传递给报表中的部件,比如条形码的Value之类的?
问题解答:
针对您所提的问题,可通过以下方法来实现:
要通过代码对指定组件的属性进行设置,可先通过StiReport.Pages[Pageindex].Components[“组件名"]来获取指定的组件,然后再对指定的属性进行设置,参考代码如下:
((StiBarCode)stiReport1.Pages["Page1"].Components["BarCode1"]).Code.Value = "6574123553255";
Tag标签:StimulsoftReports.Net