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

Unable to access subreport


sukumar

Recommended Posts

Hi,

 

I am using jasperreports. i am using sevlet now i am able to generate report. here i am sending dto object in main report.

 

Now i tried to and subreport in that how can pass the data in that same object. In the subreport i have to send array[].

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hi,

 

You'll probably need to wrap the array into an instance of the JRDataSource inteface and put in in the <dataSourceExpression> of the subreport element.

Try see if the supplied JRBeanArrayDataSource implementation suits your needs. Check the /demo/samples/datasource sample inside our project distribution.

 

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