【下载Stimulsoft Reports.Ultimate最新版本】
此示例显示如何使用各种选项将子 表添加到主 表。为此,我们需要加载所需的 表。例如,我们将收集三份 表:
private void button7_Click(object sender, System.EventArgs e){ StiReport report1 = GetReport("SimpleList.mrt"); StiReport report2 = GetReport("SimpleGroup.mrt"); StiReport report3 = GetReport("Master-Detail.mrt");...
然后创建一个主 表对象,并在SubReports集合中添加上面的 表。所述SubReports.Add()方法有两个布尔选项ResetPageNumber和PrintOnPreviousPage。您可以使用这些选项自定义子 表的显示:
... var report = new StiReport(); report.SubReports.Add(report1); report.SubReports.Add(report2, checkBoxResetPageNumber.Checked, checkBoxPrintOnPreviousPage.Checked); report.SubReports.Add(report3, checkBoxResetPageNumber.Checked, checkBoxPrintOnPreviousPage.Checked);...
最后,渲染 表并在查看器中显示它:
示例代码的结果如下图所示:

下载示例
购买Stimulsoft正版授权,请点击“咨询在线客服”哟!

标签: 表 表控件StimulsoftWinForms
声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!