开发者

c# Crystal Report add sub report to a section

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);

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜