2006 JR Open Discussion Posted August 22, 2006 Share Posted August 22, 2006 By: Tri YM - littlejarni Is it possible to save Jasperprint object 2006-03-10 05:44Hi all, Is it possible if we can save the jasperprint object to file and saved to database? So if we execute a report with the same parameter, we don't need querying anymore. We just only call the old jasperprint and show the data. Pls help me.. Thx a lot.. Tri YM By: Daren O - rckrll106 RE: Is it possible to save Jasperprint object 2006-03-10 06:52You can definately store a jasperprint object. However, you might have noticed some posts here on the issues of serial UID. Anyways, if you upgrade a version of jasper the old reports will throw an error when you read them out. The only way currently to get around this is to save(export) the jasper print object as xml. The store that into the DB. Look into the JRXmlExporter and JRPrintXmlLoader. Hope this helps. By: Code_Slave - code_slave RE: Is it possible to save Jasperprint object 2006-03-15 18:20yes that is what i do, well actually i store the source & the compiled report on the server. if the compiled report matches the current jasper library version, then it uses the compiled version, if it does not match I use the source report then re-compile. you will still need to query the data 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