muhuiru 发表于 2020-1-17 10:45:22

ActiveReports11 自动打印

ActiveReports11
WPF里报表页怎么自动打印

KearneyKang 发表于 2020-1-17 12:02:26

您好,WPF的工具栏里暂时没有工具栏中展示。如果想要实现WPF的打印可以参考这个demo示例
https://gcdn.grapecity.com.cn/forum.php?mod=viewthread&tid=48785&extra=page%3D1



实现代码:

string file_name = @"..\..\PageReport1.rdlx";
GrapeCity.ActiveReports.PageReport pageReport = new GrapeCity.ActiveReports.PageReport(new System.IO.FileInfo(file_name));
GrapeCity.ActiveReports.Document.PageDocument pageDocument = new GrapeCity.ActiveReports.Document.PageDocument(pageReport);
pageDocument.Print(true, true, false);


页: [1]
查看完整版本: ActiveReports11 自动打印