ojha Posted May 14, 2007 Share Posted May 14, 2007 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 More sharing options...
Teodor Danciu Posted May 15, 2007 Share Posted May 15, 2007 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 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