Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » GenReport.sh with scripted datasource
GenReport.sh with scripted datasource [message #653154] Tue, 08 February 2011 12:17 Go to next message
gre  is currently offline gre
Messages: 1
Registered: February 2011
Junior Member
Hi all,

I've a rptdesign using scripted datasource.
I've used this tutorial http://download.eclipse.org/birt/downloads/examples/scriptin g/scripteddatasource/scripteddatasource.html

My report works on eclipse.

Now, i'd like to use ReportEngine to generate my report.
org.eclipse.birt.report.viewer####[...] doesn't exist in plugin repository, so i don't know how to copy my class

Any help will be appreciated !
Re: GenReport.sh with scripted datasource [message #653222 is a reply to message #653154] Tue, 08 February 2011 16:15 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

If you are using the API, set:

config.getAppContext().put(EngineConstants.APPCONTEXT_CLASSL OADER_KEY,
thenameoftheclassthiscodeisin.class.getClassLoader());

config.getAppContext().put(EngineConstants.WORKSPACE_CLASSPA TH_KEY,
"classpathstring");

In the example just jar your classes and put it somewhere on your
filesystem and set the classpath string above to point to the jar.

for example:

config.getAppContext().put(EngineConstants.WEBAPP_CLASSPATH_ KEY,
"c:/jars/mjo.jar");

Jason


On 2/8/2011 12:18 PM, gre wrote:
> Hi all,
>
> I've a rptdesign using scripted datasource.
> I've used this tutorial
> http://download.eclipse.org/birt/downloads/examples/scriptin
> g/scripteddatasource/scripteddatasource.html
>
> My report works on eclipse.
> Now, i'd like to use ReportEngine to generate my report.
> org.eclipse.birt.report.viewer####[...] doesn't exist in plugin
> repository, so i don't know how to copy my class
>
> Any help will be appreciated !
>


Jason Weathersby

BIRT Exchange
Previous Topic:Can't seem to reference a form item
Next Topic:Page break based on Page number
Goto Forum:
  


Current Time: Fri Apr 25 02:50:25 EDT 2014

Powered by FUDForum. Page generated in 0.03102 seconds