Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » How to Use report engine
How to Use report engine [message #640447] Mon, 22 November 2010 07:38 Go to next message
R.Murali Missing name is currently offline R.Murali Missing nameFriend
Messages: 30
Registered: November 2010
Member
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 18:19 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

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: Thu Apr 25 11:23:20 GMT 2024

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

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

Back to the top