Jump to content
Changes to the Jaspersoft community edition download ×

Load subreports from database


fabianobonin

Recommended Posts

Hi all,

I store both my .jrxml and .jasper files in a database (reports and subreports)

When i load a report, i get it from the database as a stream and generate the report.

The problem is when this report uses some subreport it tries to find the subreport in the filesystem, but it isn´t there.

Is there a way to override the subreport loading method to be able to load it from the database?

I am considering 2 options in this case:

1 - If there is a way to override the subreport loader, i write it and i´m done

2 - If there is no way to do that, it seems i can load the subreports together with the report, and pass its layouts as parameters of the main report (can i do that?). In this case, is it possible to know in advance which subreports a report use?

Regards,

Fabiano

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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