titan115 Posted September 7, 2009 Share Posted September 7, 2009 /uploads/projects/jasperreports/image/horizontal%20filling.bmp Post Edited by titan115 at 09/07/2009 04:04 Link to comment Share on other sites More sharing options...
pawel_r Posted September 7, 2009 Share Posted September 7, 2009 I am quite new to jaspereports but the only way I know is subreporting (making 3 different subreports) Link to comment Share on other sites More sharing options...
titan115 Posted September 7, 2009 Author Share Posted September 7, 2009 pawel_rWrote: I am quite new to jaspereports but the only way I know is subreporting (making 3 different subreports) Thank you.But i think this not a graceful solution.I have to add many subreports if i add some new items to display. Link to comment Share on other sites More sharing options...
lucianc Posted September 7, 2009 Share Posted September 7, 2009 You can also use a crosstab for this.Regards,Lucian Link to comment Share on other sites More sharing options...
titan115 Posted September 7, 2009 Author Share Posted September 7, 2009 luciancWrote: You can also use a crosstab for this. Regards, Lucian Can you show me how to use crosstab to solve this problem?I quite new to jasperreport.regardstitan115 Link to comment Share on other sites More sharing options...
lucianc Posted September 10, 2009 Share Posted September 10, 2009 You would basically do this: Create a constant row group (e.g. use null as bucket expression). Create a column group that uses $V{REPORT_COUNT} as bucket expression. You can also set the isDataPreSorted flag for the crosstab dataset. Create 4 measures, one for each field, with calculation="Nothing". Display the 4 field labels in the row group header. Display the 4 measures in the crosstab data cell.Regards,Lucian 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