Jump to content
We've recently updated our Privacy Statement, available here ×

Two subreports with one JRDataSource


amaier

Recommended Posts

Hello,

i have to use two different subreports in one master detail band.

Can I use only one JRDataSource that includes the master and detail data? If possible, can you please show me how it works?
Otherwise how can I data put in the two subreports with the master view?

I am grateful for their help in advance!

Yours sincerely,

Andreas M.

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hi Andreas,

Use 2 Different DataSources for the 2 subreport, at run time just call the MasterView template, the Subreport contains the Links of Corresponding Sections,thus use JasperResports API , JasperFillManager and JasperExportManager and JRLoader would do the Trick ,i have used 22 different highly Dynamic Sub-Reports all in 1 MasterTemplate and i just needed to call the MasterTemplate in the code and everything else was taken cared of by the JasperReports APIs.

Hope this Helps..cheers

Tarun Sapra

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