找回密码
 立即注册

QQ登录

只需一步,快速开始

muhuiru

社区贡献组

65

主题

203

帖子

580

积分

社区贡献组

积分
580

活字格认证

muhuiru
社区贡献组   /  发表于:2020-1-17 10:45  /   查看:2605  /  回复:1
ActiveReports11
WPF里报表页怎么自动打印

1 个回复

倒序浏览
KearneyKang讲师达人认证 悬赏达人认证
超级版主   /  发表于:2020-1-17 12:02:26
沙发
您好,WPF的工具栏里暂时没有工具栏中展示。如果想要实现WPF的打印可以参考这个demo示例
https://gcdn.grapecity.com.cn/forum.php?mod=viewthread&tid=48785&extra=page%3D1



实现代码:

  1. string file_name = @"..\..\PageReport1.rdlx";
  2. GrapeCity.ActiveReports.PageReport pageReport = new GrapeCity.ActiveReports.PageReport(new System.IO.FileInfo(file_name));
  3. GrapeCity.ActiveReports.Document.PageDocument pageDocument = new GrapeCity.ActiveReports.Document.PageDocument(pageReport);
  4. pageDocument.Print(true, true, false);
复制代码


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部