sukumar Posted August 25, 2006 Share Posted August 25, 2006 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 More sharing options...
teodord Posted August 28, 2006 Share Posted August 28, 2006 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 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