|
Re: How to Use report engine [message #640666 is a reply to message #640447] |
Mon, 22 November 2010 18:19 |
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.03463 seconds