i-net Clear Reports

Standalone Application Installation

After you have finished the installation of the standalone application with the setup tool you can:

Start the i-net Clear Reports application

The file Sample.java in the sample directory of the i-net Clear Reports documentation is a sample for a standalone Java application.

//At least you need to start the Listener:
static Listener reportListener = new Listener(true);
 
// and request a report in the report viewer:
// Create the connection to the report server
 
URLRenderData myConnection = new URLRenderData(reportListener.getUrlString()+
				"/?file:" + System.getProperty("user.dir") +
				'/' + reportFile.getText());
 
// Create the Report Viewer
SwingReportViewer viewer = new SwingReportViewer();
 
// Create the report view and set the connection to the report server
viewer.addNewReportView(myConnection);

In this case the SwingReportViewer and the Engine of i-net Clear Reports communicate via the HTTP protocol.
If you can not use the HTTP protocol in your application then you can use the possibility to set the Engine directly with the class EngineRenderData. For more information please refer to the API documentation of the method EngineRenderData.

See Also:


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.