Organize JasperReport data (reproduced)

xiaoxiao2021-03-06  39

Organize JasperReport data (reproduced)

Java developer netizens Xie Xie! Recently, I have encountered a lot of problems in learning JasperReport (mainly domestic information too little), I rarely found it online, I will share some of the information I found and share, hope that it can help us.

1, the resources of JasperReport and Ireport, the latest version can get the official website below to get the official website: http://iReport.SourceForge.NET JasperReport official website: http://jasperreports.sourceforge.net 2, installation 1), JDK Install, and configure java_home, such as my Java_home path as follows: java_home d: / program files / j2sdk1.4.2_03 2), due to Chinese issues, there is also a need to download: ITEXT-1.02B.jar and ITextasian.jar package download address: Http://itext.SourceForge.Net/downloads/itextasian.jar and set, for example, my classpath in ClassPath is as follows: ClassPath E: / Program files / apache group / tomcat4.1 / webapps / test / web-inf / lib / ITEXT-1.02B.jar; E: / Program Files / Apache Group / Tomcat 4.1 / WebApps / TestReport / Web-INF / LIB / ITEXTASIAN.JAR; E: / Program Files / Apache Group / Tomcat 4.1 / WebApps / Testreport / Web -Inf / lib; D: /TOOLS/ireport0.2.3/lib 3), IREPORT installation IREPORT is OK, if no Ant is installed, you can run Startup.bat directly under the Noant directory under Ireport, Such IREPORT can be activated 4), JasperReport JasperReport does not need any configuration, you only need to put JAR packages after downloading to ClassPath, 5), the database's JDBC driver package is added to ClassPath 3, detailed resources IREPORT official Some about Ireport videos, for beginners: Address: http://ireport.sourceForge.Net/docs.html JasperReport Official User Guide Address: http://jasperreports.sou Some examples of rceforge.net/tutorial/index.html JasperReport: address: http://jasperreports.sourceforge.net/samples/index.html 4, FAQ 1), IREPORT prompt box input Chinese is not normal, Please delete Tinylaf.jar 2 under libs in iReport, if there is a garbled problem when running a report in Ireport, please check if itxt-1.02b.jar and itxtasian.jar are added to ClassPath 3), There is garbled or not displayed when a JSP or Servlet height statement is displayed. Please check the fonts you set in the report design process, such as: pdfname, pdfencoding 5, below is two debug example servlet: import javax.servlet. *; Import javax.servlet.http. *; import dori.jasper.Engine. *; import java.io. *; import java.util. *; import java.sql. *; / ** * @

转载请注明原文地址:https://www.9cbs.com/read-64205.html

New Post(0)