不用ReportViewer预览,能直接打印RDLC报表否

2025-03-21 02:25:13
推荐回答(1个)
回答1:

可以使用FlashViewer的以下两种方式来实现直接打印:

  • 使用StartPrint 属性。展开FlashViewerOptions属性的,设置StartPrint 属性为True。

  • 使用脚本实现

    1. 首先设置FlashViewer的UserClientApi 属性为True。

    2. 打开页面, 在OnLoadProgress事件中,添加以下脚本代码。你可以直接使用State属性来检测报表是否加载完成,并使用Print方法来调用系统的打印对话框。

具体的代码实现,请参考下面的博客

http://blog.gcpowertools.com.cn/post/printReport.aspx