Jump to content

JasperPrint File


trw1313

Recommended Posts

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

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 is

Code:

JasperPrint jrPrint = (JasperPrint) JRLoader.loadObject(..jrprint file..);

 

HTH,

Lucian

Link to comment
Share on other sites

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...