trw1313 Posted November 15, 2007 Share Posted November 15, 2007 I'm not sure what the correct procedure is for what I would like to do. I would like to have a .jrprint file saved locally on my disk. At runtime a request is made to view this file which should be compiled report with data. I saved the file by filling the .jasper file with my dataset. I'm making a few assumptions. When I save the .jasper file to disk, there is NO data for the report. The only way data is saved to a report is by filling it which should result in a .jrprint file...is this correct? If so, how do I load the .jrprint object into memory at runtime? If my assumption is NOT correct, what is the best wayt to do this? I would hate to be forced to fill my .jasper file everytime I need to view a static report. thanks... TRW Link to comment Share on other sites More sharing options...
lucianc Posted November 15, 2007 Share Posted November 15, 2007 trw1313 wrote:When I save the .jasper file to disk, there is NO data for the report. The only way data is saved to a report is by filling it which should result in a .jrprint file...is this correct? Correct. If so, how do I load the .jrprint object into memory at runtime? All you have to do isCode:JasperPrint jrPrint = (JasperPrint) JRLoader.loadObject(..jrprint file..); HTH,Lucian Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now