开发者

c# Crystal Report add sub report to a section

开发者 https://www.devze.com 2023-03-21 23:58 出处:网络
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 ad

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

精彩评论

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

关注公众号