Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Cannot set Shared Resources folder
Cannot set Shared Resources folder [message #630987] Tue, 05 October 2010 18:20 Go to next message
Eclipse User
Originally posted by: vm.vm.com

In an application using the birt 2.6.1 api I read an .rptdesign file. Next I
try to set the resource folder and save the updated .rptdesign file:

ReportDesignHandle rr = myReport.getDesignHandle();
rr.setResourceFolder("c:\\myTestFolder");
rr.saveAs(c:\\test\\updated.rptdesign);

But when I open the "updated.rptdesign" the shared resource folder has not
been updated to the "myTestFolder". Is it not possible to update the Shared
Resources folder on a .rptdesign file?
Re: Cannot set Shared Resources folder [message #631198 is a reply to message #630987] Wed, 06 October 2010 14:34 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

The resource folder gets set on the runtime and is not saved in the design.

config = new EngineConfig( );

config.setBIRTHome(" C:\\birt\\birt-runtime-2_5_1\\birt-runtime-2_5_1\\ReportEngi ne ");
config.setLogConfig(null, Level.FINE);
config.setResourcePath("C:\\myresources");
Platform.startup( config );

So if your report uses lib1.rptlibrary or some image in the resource
folder you just setup your runtime to point to that folder.

Jason


On 10/5/2010 2:20 PM, vm wrote:
> In an application using the birt 2.6.1 api I read an .rptdesign file.
> Next I try to set the resource folder and save the updated .rptdesign file:
>
> ReportDesignHandle rr = myReport.getDesignHandle();
> rr.setResourceFolder("c:\\myTestFolder");
> rr.saveAs(c:\\test\\updated.rptdesign);
>
> But when I open the "updated.rptdesign" the shared resource folder has
> not been updated to the "myTestFolder". Is it not possible to update the
> Shared Resources folder on a .rptdesign file?
Previous Topic:SQl Query Performance in BIRT
Next Topic:Upgrading report definitions for newer BIRT version?
Goto Forum:
  


Current Time: Sun Oct 26 07:14:46 GMT 2014

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

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