Activereports 正在删除最后一个子报表
Activereports is removing the last subreport
我在报表的详细信息部分有一个子报表,它适用于除每一页上最后一个子报表之外的所有子报表。当我在详细信息部分使用 keepTogether 时,最后一个子报表不会显示。当我关闭 keepTogether 时,它只显示适合页面的内容,然后将其余内容丢弃。
我需要寻找什么来解决这个问题?
葡萄城团队的评论是正确的。
我在 FetchData 事件中附加了子报表,该事件在其他报表中起作用。我想说原因是因为我以前做的报告都是设计成一页的。
来自 AR 文档:
http://helpcentral.componentone.com/nethelp/AR7Help/OnlineEn/Subreport.html
Coding best practices
Use the ReportStart event of the main report to create an instance of
the report for your SubReport control, and then dispose of it in the
ReportEnd event. This way, you are creating only one subreport
instance when you run the main report.
In the Format event of the containing section, use the Report property
of the SubReport control to attach a report object to the SubReport
control.
我在报表的详细信息部分有一个子报表,它适用于除每一页上最后一个子报表之外的所有子报表。当我在详细信息部分使用 keepTogether 时,最后一个子报表不会显示。当我关闭 keepTogether 时,它只显示适合页面的内容,然后将其余内容丢弃。
我需要寻找什么来解决这个问题?
葡萄城团队的评论是正确的。
我在 FetchData 事件中附加了子报表,该事件在其他报表中起作用。我想说原因是因为我以前做的报告都是设计成一页的。
来自 AR 文档: http://helpcentral.componentone.com/nethelp/AR7Help/OnlineEn/Subreport.html
Coding best practices
Use the ReportStart event of the main report to create an instance of the report for your SubReport control, and then dispose of it in the ReportEnd event. This way, you are creating only one subreport instance when you run the main report.
In the Format event of the containing section, use the Report property of the SubReport control to attach a report object to the SubReport control.