Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Are thre alternative ways to assess report libraries
swissbison
Hi there,
I need to integrate BIRT into an existing application. In this application we have all our relevant files in a database. So this means we will get the report design as well as the report library from the database, finally we will have a InputStream.
I know that I can use an InputStream to open a reportDesign, but then I need to somehow transfer the report libraries, which are referenced in the report design, to the ResourcePath given in the EngineConfiguration.
So now the question is, if it is possible to give the ReportEngine the needed report libraries in the form of a e.g. Array of LibraryInputStreams, instead of temporary creating a directory which contains the libraries?
Any en lighting would be great!
Regards
Paul
Find more posts tagged with
Comments
JasonW
Paul,
If you are using the report engine API you may want to look at creating your own implementation of a resource locator. You have to implement the IResourceLocator interface. Look at the DefaultResourceLocator.java class to see how the default implementation works. The interface has one method that returns a URL to a resource.
Jason
JasonW
When using the engine you can set the resource locator using the engine config class;
config.setResourceLocator(yourimplementation)