Skip to main content



      Home
Home » Archived » BIRT » How to Use report engine
How to Use report engine [message #640447] Mon, 22 November 2010 02:38 Go to next message
Eclipse UserFriend
How to use report engine for creating a simple report in Eclipse RCP application...
Can anyboby give me a simple program that just to create any simple report
Re: How to Use report engine [message #640666 is a reply to message #640447] Mon, 22 November 2010 13:19 Go to previous message
Eclipse UserFriend
When you use the Report Engine or the Design Engine in an RCP
application you skip the platform startup because the platform should
already be started. Also do not set birt home or set it to ""


//Report Engine

EngineConfig config = new EngineConfig();

try{
// Create the report engine
IReportEngineFactory factory = (IReportEngineFactory)
org.eclipse.birt.core.framework.Platform
.createFactoryObject(
IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY );
IReportEngine engine = factory.createReportEngine( config );

} catch (Exception e) {
}

//Design Engine


IDesignEngine dengine=null;

DesignConfig dconfig = new DesignConfig( );
IDesignEngineFactory dfactory = (IDesignEngineFactory) Platform
.createFactoryObject(
IDesignEngineFactory.EXTENSION_DESIGN_ENGINE_FACTORY );
dengine = dfactory.createDesignEngine( dconfig );



There are a lot of examples in the DevShare on Birt-Exchange.org Here
is a simple de api example:
http://www.birt-exchange.org/org/devshare/designing-birt-rep orts/141-simple-design-engine-api-example/

Jason

On 11/22/2010 2:38 AM, R.Murali wrote:
> How to use report engine for creating a simple report in Eclipse RCP
> application...
> Can anyboby give me a simple program that just to create any simple report
>
Previous Topic:Birt 2.5.2 - JNDI not used after application reload under tomcat--> Missing properties in Connect
Next Topic:Table of contents in a PDF file
Goto Forum:
  


Current Time: Wed Jul 23 00:14:55 EDT 2025

Powered by FUDForum. Page generated in 0.08274 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top