What is a report design in JasperReports?

By: MakeItSimple. Printer Friendly Format    

As mentioned, a report design represents a template that will be used by the JasperReports engine to deliver dynamic content to the printer, to the screen or to the Web. Data stored in the database is organized according to the report design to obtain ready to print, page oriented documents. 

The report designs are defined in XML files and must have a special structure. This structure is declared in a DTD file supplied with the JasperReports engine. The XML files are then compiled, in order to use them in report filling operations.

To create a simple report design, we have to edit an XML file with the following structure:

<?xml version="1.0"?>
<!DOCTYPE jasperReport 
  PUBLIC "-//JasperReports//DTD Report Design//EN" 
<jasperReport name="name_of_the_report" ... >

Most Viewed Articles (in Java )

Latest Articles (in Java)

Comment on this tutorial