Jump to content

compiling a report and all its subreport at once


ojha

Recommended Posts

dear friend,

i have a main report and 3 subreports of it.

I want to compile all theas at oncce at the time when i compile my main report.

so plz tell me is it possible to compile a main report and all its subreport at once. & how to do it?

i am using --

JasperCompileManager.compileReportToFile();

to compile my report.

but it compiles only one file at a time.

I want to compile main report and all its subreport at once.

 

...

ojha

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hi,

 

First of all, you should probably know that when using static report templates (templates that you create once and you do not change at runtime), you could compile them at application build time, just like you compile the Java source files.

There is an Ant task for bulk compiling JRXML files and you could look at the supplied /demo/samples/antcompile sample provided to see how.

 

Actually, all the samples that are shipped with the project distribution files use the Ant task to compile JRXML files, including the /demo/samples/subreport sample.

 

I hope this helps.

Teodor

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