Problems with rptlibrary [message #190863] |
Mon, 18 September 2006 16:46 |
Eclipse User |
|
|
|
Originally posted by: afgomez.parquesoft.com
Hello,
I cant load a library for a ReportDesignHandle.
I did this:
sessionHandle = new DesignEngine(dc).newSessionHandle((ULocale) null);
design = sessionHandle.createDesign();
//In this line, the system throw an exception
design.includeLibrary("template.rptlibrary", "template");
Exception:
Error.DesignFileException.SYNTAX_ERROR - 1 errors found!
1.) org.eclipse.birt.report.model.parser.DesignParserException (code =
Error.DesignParserException.FILE_NOT_FOUND, message : The file
"template.rptlibrary" is not found.)
I tried putting this:
designConfig.setConfigurationVariable("BIRT_RESOURCE_PATH", "C:/jka/birt/");
But it doesnŽt work.
What can i do to solve this problem?
Thanks
|
|
|
Re: Problems with rptlibrary [message #190879 is a reply to message #190863] |
Mon, 18 September 2006 23:37 |
|
Try it on the design session.
session.setBirtResourcePath( "c"/jka/birt");
Jason
"Andres" <afgomez@parquesoft.com> wrote in message
news:912dee423ce471b0745db73a86c66a55$1@www.eclipse.org...
> Hello,
> I cant load a library for a ReportDesignHandle.
> I did this:
>
> sessionHandle = new DesignEngine(dc).newSessionHandle((ULocale) null);
> design = sessionHandle.createDesign();
>
> //In this line, the system throw an exception
> design.includeLibrary("template.rptlibrary", "template");
>
> Exception:
> Error.DesignFileException.SYNTAX_ERROR - 1 errors found! 1.)
> org.eclipse.birt.report.model.parser.DesignParserException (code =
> Error.DesignParserException.FILE_NOT_FOUND, message : The file
> "template.rptlibrary" is not found.)
>
> I tried putting this:
> designConfig.setConfigurationVariable("BIRT_RESOURCE_PATH", "C:/jka/birt/");
> But it doesn
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02868 seconds