Log in / create account
View source | Discuss page | Page history | Printable version   
ADVERTISEMENT
Accounting eLearning Courses
Partnerships
SourceForge.net Logo
Openbravo ERP at SourceForge

SourceForge.net Logo
Openbravo POS at SourceForge

Open Solution Alliance Logo
Openbravo at Open Solutions Alliance

Developers Manual/Creating reports using Jasper Reports/Creating the Template using iReport

This document is still a work in progress. It may contain inaccuracies or errors.


Contents

Introduction

iReport is a powerful, intuitive and easy to use visual report builder/designer for JasperReports written in 100% pure java. This tool allows users to visually edit complex reports with charts, images, and subreports. iReport is integrated with leading open source chart libraries for java.

The data to print can be retrieved through several ways including multiple JDBC connections, TableModels, JavaBeans, XML, MDX, EJBQL, Hibernate, etc.


Setting up your environment

Downloading and Installing iReport

You can download a version of iReport from sourceforge.net and for installation steps you can go the iReport's documentation page

NOTE: Please keep in mind that Openbravo 2.35 (MPx) and 2.40 do not support JRXML files generated by iReport 2.0.4 or newer so please use the 2.0.3 version.

Defining classpath for database connectivity

To be able to connect to Oracle database, you need to include the ojdbc14.jar in iReport's classpath.


Defining a database connection


Creating a Template

You can use the iReport's Report Wizzard to create a Jasper Report template.

SELECT M_Product_ID, Name, Description
  FROM M_Product
 ORDER BY Name
AppsOpenbravo
  |-src
     |-org
        |-openbravo
           |-base
           |-erpCommon
              |-ad_actionButton
              |-ad_background
              |-ad_callouts
              |-ad_combos
              |-ad_forms
              |-ad_help
              |-ad_process
              |-ad_reports      --> .jrxml templates
              |-ad_tasks
              |-ad_workflow
              |-businessUtility
              |-info
              |-reference
              |-security -> login
              |-utility
              |-ws -> Web Services
           |-erpReports


Testing your Report


Adding your Report to Openbravo ERP

You can now add your Jasper Report to Openbravo ERP.

Retrieved from "http://wiki.openbravo.com/wiki/Developers_Manual/Creating_reports_using_Jasper_Reports/Creating_the_Template_using_iReport"

This page has been accessed 4,455 times. This page was last modified 11:51, 29 September 2008. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.


Category: Development