generatejasperreportfromjavascript

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

generatejasperreportfromjavascript [2021/07/22 11:12]
wikiadmin created
generatejasperreportfromjavascript [2021/07/22 11:22] (current)
wikiadmin
Line 2: Line 2:
  
 This example uses a jasper file to make a pdf report from data in a database. This example uses a compiled JasperReports file (with a .jasper extension) which was generated from a JasperReports definition (contained in a .jrxml file) using Jaspersoft Studio Community Edition. It also uses a DataAdapter (xml file) set up with Jaspersoft Studio as part of the report definition which points to the database name (jdbc url) and jdbc driver class, as well as the library needed for the driver. This example uses a jasper file to make a pdf report from data in a database. This example uses a compiled JasperReports file (with a .jasper extension) which was generated from a JasperReports definition (contained in a .jrxml file) using Jaspersoft Studio Community Edition. It also uses a DataAdapter (xml file) set up with Jaspersoft Studio as part of the report definition which points to the database name (jdbc url) and jdbc driver class, as well as the library needed for the driver.
 +
 +In Jaspersoft Studio, a parameter was set up as $P{RunNumber} which is used by the primary datasource sql statement and some of the sub queries to get the data for the report. This is passed into the report generator in the example code below.
  
 This example can be used in MIStudio/MIX and TransSECS. It requires that the database jar (jdbc driver jar) and all the Jaspersoft runtime jars be available on the runtime classpath.  This example can be used in MIStudio/MIX and TransSECS. It requires that the database jar (jdbc driver jar) and all the Jaspersoft runtime jars be available on the runtime classpath. 
  • generatejasperreportfromjavascript.1626970344.txt.gz
  • Last modified: 2021/07/22 11:12
  • by wikiadmin