Cannot set Shared Resources folder [message #630987] |
Tue, 05 October 2010 18:20 |
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 |
|
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?
|
|
|
Powered by
FUDForum. Page generated in 0.04025 seconds