Jump to content
Changes to the Jaspersoft community edition download ×

general subreport question


2005 IR Help

Recommended Posts

By: ToRaX - torax

general subreport question

2005-04-04 05:42

Hi,

 

 

is it correct, that I can only use subreports when the report that should be embedded as subreport is already compiled (.jasper file)?

 

Is there a way to store a report containing subreports totally in xml (report AND subreports)?

 

 

Thanks a lot for your help!

 

 

 

 

By: C-Box - c-box

RE: general subreport question

2005-04-04 07:28

AFAIK at least the MasterReport must be compiled because the Fill Methods always want a JasperReport-Object.

As SubReports you could use a static helper class that gets the name of the needed SubReport --> looks for the XMLSource for that report (either in FileSystem, in a collection or in database) --> compiles the report and returns a JasperReport Object. ( so you could also use that method to get your MasterReport when calling the fill-method) ... but I guess it's better to use already precompiled reports (so we do) from a database or whatever. It's much faster than compiling every (sub)report when filling a report.

 

just my two cent.

 

C-Box

 

 

 

 

By: ToRaX - torax

RE: general subreport question

2005-04-05 00:23

Thanks for your reply. I have to think about that...

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