yaoshiyou 发表于 2022-2-10 08:35:43

寻求 PageReport Subreport1 代码示例

PageReportSubreport1 代码示例

Bella.Yuan 发表于 2022-2-10 09:33:02

您好,不是很明白您的需求,方便的话描述一下具体需求,我们帮您看看。

yaoshiyou 发表于 2022-2-10 10:01:10

render = new GrapeCity.ActiveReports.Export.Pdf.Page.PdfRenderingExtension();
                  settings = new GrapeCity.ActiveReports.Export.Pdf.Page.Settings();
                  return new ReportExport(render, settings);

通过代码导出pdf 有 Subreport 的代码示例

yaoshiyou 发表于 2022-2-10 10:13:17

GrapeCity.ActiveReports.ReportException: 'Subreport name is not specified for subreport report item 'Subreport1''

Bella.Yuan 发表于 2022-2-10 12:13:58

您好,GrapeCity.ActiveReports.ReportException: 'Subreport name is not specified for subreport report item 'Subreport1'',这个意思是子报表没有加报表名称导致的报错,您根据下面截图给子报表添加一下。

yaoshiyou 发表于 2022-2-10 13:39:19

通过报表怎么指定Subreport1

Bella.Yuan 发表于 2022-2-10 13:58:19

您好,报表使用子报表组件时,子报表组件需要设置具体的名称,按照下面截图。执行到步骤4就可以选择到具体的子报表,您根据需要进行选择即可。

yaoshiyou 发表于 2022-2-10 16:36:15

SectionReport 可以通过这个指定m_Report.Report = value.Report.m_SectionReport;

Bella.Yuan 发表于 2022-2-10 19:12:05

yaoshiyou 发表于 2022-2-10 16:36
SectionReport 可以通过这个指定m_Report.Report = value.Report.m_SectionReport;

您好,这个我们这边先调研一下,有消息马上回复您。

Bella.Yuan 发表于 2022-2-15 18:24:51

您好,这个可以使用ResourceLocator,附件是示例代码,您可以参考一下。
页: [1] 2
查看完整版本: 寻求 PageReport Subreport1 代码示例