Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » GenReport.sh with scripted datasource
GenReport.sh with scripted datasource [message #653154] Tue, 08 February 2011 17:17 Go to next message
gre  is currently offline gre Friend
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 21:15 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
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 !
>
Previous Topic:Can't seem to reference a form item
Next Topic:Page break based on Page number
Goto Forum:
  


Current Time: Thu Apr 25 20:48:33 GMT 2024

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

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

Back to the top