Use the jasperreports report to generate a pdf document that cannot display Chinese characters. How can this problem be solved? jasperreportspdf

Source: Internet
Author: User

Use the jasperreports report to generate a pdf document that cannot display Chinese characters. How can this problem be solved? jasperreportspdf

In the jrxml and jasper files generated using the jasperreports5.6.0 series of development tools, the jar packages related to fonts in pdf are as follows:

IText-2.1.7.js2.jar; iTextAsian. jar.

When designing a jrxml file, pay attention to setting the attribute values of elements (such as Text Field and Static Text.



Java calls jasperreport to generate a Pdf report. Currently, fields of the String type can be displayed normally.

This indicates that this big data type is not supported here. during compilation, BigDecimal occupies a large number of bytes and overflow occurs during interpretation. As a result, a compilation problem occurs and the class cannot be generated, an error occurred in subsequent calls .. Change the type ..

An error occurred when using JasperReport + iReport to generate a report. Please take a look.

The date format is incorrect. Try to convert the string.
'2017-01-01 'format

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.