jasperreport生成pdf_jasperreport 导出excel_jasperreport json(57)

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

representation, it will try to locate a file on disk and load the image from it, assuming that

the value represents a file name. If no file is found, it will finally assume that the string

value represents the location of a classpath resource and will try to load the image from

there. Only if all those fail, an exception will be thrown.

If the image expression class is not specified using the class attribute, it is assumed to be

java.lang.String, by default.

The images sample provided with the project contains several examples of image elements.

8.2.4 Charts and Graphics

The JasperReports library does not produce charts and graphics itself. This is not one of its goals.

However, it can easily integrate charts and graphics produces by other, more specialized Java libraries.

The great majority of available Java libraries that produce charts and graphics can output to image files

or to in-memory Java image objects. This is why it shouldn't be hard for anybody to put a chart or a

graphic generated by one of those libraries into a JasperReports document using a normal image

element that we have presented in the previous section of this book.

You can see this working in the sample called chart, which comes with the project.

8.3 Hyperlinks

JasperReports allows you to create drill-down reports, to introduce tables of contents in your

documents or to redirect viewers to other external documents using special report elements called

hyperlinks.

Hyperlinks are special elements that contain a reference to a local destination within the current


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

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

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