I need to add a sub report to a section dynamically. Is there a way of doing it?
T开发者_运维知识库hanks in advance.
If you have a ReportDocument object, you can use the ReportClientDocument-API to add a new subreport like this (example for page footer):
report.ReportClientDocument.SubreportController.ImportSubreportEx("Test", @"C:\test-sub.rpt", report.ReportClientDocument.ReportDefController.ReportDefinition.PageFooterArea.Sections[0], left, top, width, height);
精彩评论