我有一个报告,里面有很多子报告。
如何遍历主表中的子报表集合?我需要它来更改每个子报告的数据源。
提亚
发布于 2010-01-06 02:16:15
根据CodeByMoonlight评论编辑-我还没有测试过这个,但它应该比我的原始版本要好得多。
ReportDocument reportDocument = new ReportDocument();
reportDocument.Load(...);
foreach (ReportDocument subreportDocument in reportDocument.Subreports) {
// do something here
} https://stackoverflow.com/questions/2008057
复制相似问题