代码之家  ›  专栏  ›  技术社区  ›  Alexander

如何浏览Crystal Reports 2008中的子报表集合?

  •  0
  • Alexander  · 技术社区  · 16 年前

    我的报告中有很多子报告。

    如何浏览主报表中的子报表集合?我需要它来更改每个子报表的数据源。

    短暂性脑缺血发作

    1 回复  |  直到 16 年前
        1
  •  2
  •   Ray    16 年前

    根据CodeByMoonlight评论编辑-我还没有测试过这个,但它应该比我原来的要好得多。

    ReportDocument reportDocument = new ReportDocument();
    reportDocument.Load(...);
    foreach (ReportDocument subreportDocument in reportDocument.Subreports) {   
      // do something here
    }