jasperreport生成pdf_jasperreport 导出excel_jasperreport json(71)

电脑杂谈  发布时间:2017-02-04 10:28:36  来源:网络整理

you obtain by subclassing.

This can be seen in the webapp sample, where the "Printer Applet" displays a customized version of the

report viewer with an extra button in the toolbar.

Another very important issue is that the default report viewer that comes with the library does not know

how to deal with document hyperlinks that point to external resources. It only deals with local

references and can redirect the viewer to corresponding local anchor.

However, JasperReports offers you the possibility to handle yourself the clicks made on document

hyperlinks that point to external documents and not local anchors.

The only thing you have to do in order to achieve this, is to implement the

dori.jasper.view.JRHyperlinkListener intece and to add to register with the viewer

component an instance of this listener class, using the addHyperlinkListener() method exposed

by the dori.jasper.view.JRViewer class.

By doing this, you make sure the viewer will also call your implementation of the gotoHyperlink()

method in which you handle yourself the external references.

10.4 Exporting to New Output Formats

The JasperReports library continually evolves and improves. Among the features that are likely to be

introduced with time is the ability to export to new documents formats, besides PDF, HTML and XML.

In order to extend diversify in this direction, without affecting the existing functionality, JasperReports

provides those interested in this subject an intece for them to implement, in case they want to create


本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/ruanjian/article-30468-71.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    热点图片
    拼命载入中...