Skip to main content



      Home
Home » Archived » BIRT » Use BIRT Report api "without" separate birt runtime (inside eclipse)
Use BIRT Report api "without" separate birt runtime (inside eclipse) [message #243232] Tue, 19 June 2007 04:41 Go to next message
Eclipse UserFriend
Originally posted by: johan.ponin.fr.ibm.com

Hi all,

I've looked through BIRT tutorials for report api and it always begin with
some code for running birt runtime.
But I'm in an \"Eclipse plug-in\" context, so i would like to know if it's
possible to use the Report Api directly.
Considering my eclipse configuration 'could' all the librairies needed, i'd
like to do something like this:

ReportEngine engine =
$methodForPluginLookup.get(\"org.eclipse.birt.....\").createEngineFactory();

and then use the api like the tutorial.

My goal is to make a way to, programmaticaly, open a report or a report
template,
then create/change the datasource and datasets to be able to run a report
generation but with any input source I want from a kind of pipeline.

A scenario could look like this:

BIRT Designer User:
-> predefine Report/ReportTemplate R

Lambda Eclipse User:
-> Select an xml file X
-> Then run my plugin action to create specific generated report for X and
R without using the BIRT Designer to bind data sources.

Thanks in advance, I hope i'm not asking stupid things or bending BIRT too
much.

Johan PONIN
Re: Use BIRT Report api "without" separate birt runtime (inside eclipse) [message #243620 is a reply to message #243232] Wed, 20 June 2007 12:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Johan,

If you have BIRT re api plugin in your dependencies you should be able
to do this to get the report engine

EngineConfig config = new EngineConfig();

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

Jason


Johan PONIN wrote:
> Hi all,
>
> I've looked through BIRT tutorials for report api and it always begin with
> some code for running birt runtime.
> But I'm in an \"Eclipse plug-in\" context, so i would like to know if it's
> possible to use the Report Api directly.
> Considering my eclipse configuration 'could' all the librairies needed, i'd
> like to do something like this:
>
> ReportEngine engine =
> $methodForPluginLookup.get(\"org.eclipse.birt.....\").createEngineFactory();
>
> and then use the api like the tutorial.
>
> My goal is to make a way to, programmaticaly, open a report or a report
> template,
> then create/change the datasource and datasets to be able to run a report
> generation but with any input source I want from a kind of pipeline.
>
> A scenario could look like this:
>
> BIRT Designer User:
> -> predefine Report/ReportTemplate R
>
> Lambda Eclipse User:
> -> Select an xml file X
> -> Then run my plugin action to create specific generated report for X and
> R without using the BIRT Designer to bind data sources.
>
> Thanks in advance, I hope i'm not asking stupid things or bending BIRT too
> much.
>
> Johan PONIN
>
>
Re: Use BIRT Report api "without" separate birt runtime (inside eclipse) [message #243808 is a reply to message #243620] Thu, 21 June 2007 04:54 Go to previous message
Eclipse UserFriend
Originally posted by: johan.ponin.fr.ibm.com

Oh thanks a lot Jason, it looks like exactly what i needed.

G'bye

Johan

"Jason Weathersby" <jasonweathersby@alltel.net> wrote in message
news:f5bli2$rmn$1@build.eclipse.org...
> Johan,
>
> If you have BIRT re api plugin in your dependencies you should be able to
> do this to get the report engine
>
> EngineConfig config = new EngineConfig();
>
> // Create the report engine
> IReportEngineFactory factory = (IReportEngineFactory)
> org.eclipse.birt.core.framework.Platform
> .createFactoryObject(
> IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY );
> IReportEngine engine = factory.createReportEngine( config );
>
> Jason
>
>
> Johan PONIN wrote:
>> Hi all,
>>
>> I've looked through BIRT tutorials for report api and it always begin
>> with some code for running birt runtime.
>> But I'm in an \"Eclipse plug-in\" context, so i would like to know if
>> it's possible to use the Report Api directly.
>> Considering my eclipse configuration 'could' all the librairies needed,
>> i'd like to do something like this:
>>
>> ReportEngine engine =
>> $methodForPluginLookup.get(\"org.eclipse.birt.....\").createEngineFactory();
>>
>> and then use the api like the tutorial.
>>
>> My goal is to make a way to, programmaticaly, open a report or a report
>> template,
>> then create/change the datasource and datasets to be able to run a report
>> generation but with any input source I want from a kind of pipeline.
>>
>> A scenario could look like this:
>>
>> BIRT Designer User:
>> -> predefine Report/ReportTemplate R
>>
>> Lambda Eclipse User:
>> -> Select an xml file X
>> -> Then run my plugin action to create specific generated report for X
>> and R without using the BIRT Designer to bind data sources.
>>
>> Thanks in advance, I hope i'm not asking stupid things or bending BIRT
>> too much.
>>
>> Johan PONIN
Previous Topic:Stuck on JBoss datasource
Next Topic:Recursively nested subreports
Goto Forum:
  


Current Time: Mon May 12 03:32:50 EDT 2025

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

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

Back to the top