如何使用 Eclipse RCP 的打印选项打印 jasper 报告?
我的问题:我在 Eclipse RCP 应用程序中有一个 ViewerComposite,它显示集成到其中的 Jasper Report (*.jrxml)。此 ViewerComposite 中显示的报告可以导出为 PDF、RTF、XML、jrxml、HTML、CSV 等。一切都很好,除了我无法使用 GUI 中 ViewerComposite 顶部提供的打印选项打印此报告。如何使用报告查看器的打印选项使用默认打印机打印报告。 Rem:我可以使用 Oracle JDeveloper 项目中 jasper 报告查看器组合的打印选项来打印 jasper 报告,而无需添加任何更多代码(默认情况下)。
My question : I have a ViewerComposite in Eclipse RCP application which displays Jasper Report (*.jrxml) integrated into it. The report displayed in this ViewerComposite can be exported as PDF,RTF,XML,jrxml,HTML,CSV, etc. Everything is fine except I can not print this report by using the print option provided at top of ViewerComposite in GUI. How can I print the reports by using my default printer by using print option of the report viewer.
Rem: I can print jasper report by using the print option of jasper report viewer composite in Oracle JDeveloper Projects without adding any more codes(by default).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对我来说,在 Eclipse RCP 应用程序中制作 Jasper Reports 的最佳方法如下:
详细代码如下:
The best way for me to make my Jasper Reports in Eclipse RCP application was as follows :
The details code for this is as follows :