Jump to content

Is it possible to save Jasperprint object


Recommended Posts

By: Tri YM - littlejarni

Is it possible to save Jasperprint object

2006-03-10 05:44

Hi 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:52

You 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:20

yes 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

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...