Jump to content

How to compile reports ahead of time


nkamir

Recommended Posts

Hi,

I started using Jasper Reports and IReport about one week ago when I found a good article on it, heres the link

http://www.devx.com/Java/Article/29309/1954

 

Now, I have designed a few reports for my project, and I invoke these reports either from Report Menu in my application or from Buttons. The code for it is in the code section.

 

I'm just wondering whats the proper way of compiling reports ahead of time and include it in the application, and then later just pass it the parameters to generate the reports. Right now what happens is that, everytimeI click the button, it loads the jrxml, compiles it, fills it, and view/print it. It does all these things on every click.

 

 

Code:

 




Post Edited by Nasir Amir at 02/07/09 01:50
Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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