打印多个 Telerik 报告?
我目前有一个 ASP.Net/C# 系统,允许用户在数据库中为员工动态创建/导出 (PDF) Telerik 报告。用户可以选择从员工列表中选择要导出的员工,或全部导出。
Telerik 报告查看器当前有一个指定的“打印”按钮,但我希望用户能够在选择时或单击“打印所有报告”按钮时打印多个报告。
有没有办法以编程方式打印多个动态 Telerik 报告? (如果可能的话,提供打印预览?)
I currently have an ASP.Net/C# system which allows the User to Dynamically Create/Export (PDF) Telerik Reports for Employees in the database. The User is given the choice to Select from a list of Employee's to Export, or to Export them all.
The Telerik Report Viewer currently has a designated "Print" button, but I would like to give the Users the ability to Print Multiple Reports when Selected, or when the "Print All Reports" button is clicked.
Is there a way to proggramatically Print Multiple Dynamic Telerik Reports? (and give a Print Preview if possible?)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
抱歉重复发帖,但我最终自己解决了这个简单的问题。
使用我已经为报告的 PDF 导出编写的方法,我循环遍历并将每个报告添加到 "ReportBook"。然后,我在页面上已有的 ReportViewer 中显示了 ReportBook。
这给了我一直在寻找的“打印预览”方面,以及打印多个报告的能力。
我想我会分享以供将来参考
最好的祝福
Sorry for the double-post, but I ended up solving this simple question on my own.
Using the Methods I had already written for the PDF export of the Reports, I looped through and added each Report to a "ReportBook". I then displayed the ReportBook in the ReportViewer I already had on my page.
This gave me the "Print Preview" aspect I was looking for, and the ability to Print Multiple Reports.
Thought I'd share for future reference
Best Regards