i-net Clear Reports

Beans Readme

This folder contains the samples for the feature beans as data source. There are two sample classes which can be executed using two different scenarios.

samples.beans.GenerateReportsDirect

This sample will use the beans as datasource in a scenario where the API of i-net Clear Reports is used to execute reports from an own application. In this application the bean data is available within the same Java Virtual Machine. To execute this sample the main method of the class GenerateReportsLocal has to be executed and some PDF files will be generated. To run this sample you will need the following classes: Customer, Product, BeanDataSourceManagerImpl, GenerateReportsDirect. You can also use the library direct_client.jar generated by the build script build.xml.

You can run the sample using the main-method of GenerateReportsDirect.

Click to open the sample file.

samples.beans.GenerateReportsServlet

This sample will use the beans as datasource in a scenario where the bean data is provided by an external servlet environment or application server. In this case i-net Clear Reports will request the bean data from the servlet environment or application server. Therefore some classes have to be deployed into the servlet context where i-net Clear Reports is installed. These classes are: Customer, Product and BeanDataSourceManagerImpl. The client application should include the classes Customer, Product and GenerateReportsServlet. (Please note that the client application should not include BeanDataSourceManagerImpl as the servlet would not be used then.) When the sample is executed the same PDF files like in sample GenerateReportsDirect will be generated.You can also use the library servlet_server.jar (to deploy into the servlet environment) and servlet_client.jar for the client application generated by the build script build.xml.

Before running the sample / generating the libraries you should change the constant SERVLET_PATH in GenerateReportsServlet to point to the servlet context where i-net Clear Reports is installed.

You can run the sample using the main-method of GenerateReportsServlet.

Click to open the sample file.

Running the build script build.xml

You can run the build script build.xml to generate the libraries for both samples. Therefore you have to define the variable path.clearreports specifying the directory where the ClearReports.jar of your i-net Clear Reports installation is located. If you run the build.xml from sampleroot/src/samples/beans you will find the generated jar files in sampleroot/target.

Click to open the sample file.


i-net software strives to provide accurate product documentation. Please give us your feedback using the form below.
NOTE: This form is for documentation feedback only. For technical assistance, please send an email to clearreports@inetsoftware.de.

 

© Copyright 1996 - 2012, i-net software; All Rights Reserved.