UltraLightClient Code Community
[ start | index | login ]
Overview > JFreeReport Usage

JFreeReport Usage

Belongs to following categories: Integration, ULC5.2,

Purpose

This code shows how to use JFreeReport to generate a PDF report from a ULCTable.

Resources

How to use

After starting the application, a window with a table is shown. After pressing the get report button a server side PDF file is generated and downloaded to the client.

How it is implemented

As JFreeReport takes a Swing table model to access the data, the adapter class SwingULCAdapterTableModel is used to map the ULC model to Swing. The Swing model is the actual data container. Then the code follows the example output direct to PDF of JFreeReport's manual to generate the report file on the server. Further the example uses the ResourceDownloadServlet and the helper classes of Etienne's com.canoo.template.util.download package. Please do not forget to configure this servlet in your application's web.xml.

Compatibility

The described functionality has been developed and tested using JDK 1.4.2_03 and ULC 5.2

Author

>>claus

no comments | post comment
labels
Category:ULC5.2
Category:Integration
attachments
jfreereportdemo.war (5518968)
jfreereportexample.zip (3651)
Created by claus. Last edited by admin, one year and 352 days ago. Viewed 9,591 times. #8
[diff] [history] [edit] [rdf]
Name
Email:
snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt