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?
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?