We are using JasperReports
as our reporting tool. Earlier, we were using a path relative to the Jesse file to fill the report and it is working fine.
Now, we want to create a new jar for all the compiled jrxml
files. That is, a jar containing all the .jasper
files for our project.
Is there a way to access those .jasper
files within a jar file when filling the reporting? Because in the documentation, I always
fill report (java.lang.String sourceFileName, java.util.Map parameter)
Where, the source file is always a Path on File System
My question is, is there a way to access compiled .jasper
files inside a file and fill out the report based on those files?
Edit: Basically what is required, I need access to the .jasper
files from a jar file, and then that. Fill the report using jasper
Save and save the generated reports on the file system.
Most APIs worth utilizing will provide overloaded methods to accept input stream E.G. InputStream
to get to Class.getResourceAsStream ()
.
Comments
Post a Comment