2006 IR Open Dicussion Posted August 27, 2006 Share Posted August 27, 2006 By: Bryan Conzone - bconzone Different Column Counts, Wrapping or Colspan 2006-07-23 16:57Does anyone know if there is a way to have different sections within a report have a different number of columns. Also one set would tile or distribute horizontally and the other would be vertical. The problem I am having is that I am not generating the standard type of tabular reports that span multiple pages, essentially I am generating single page reports for in memory java objects where each object holds the data to be displayed on one page. The problem I am having is with columns. Please refer to the diagram in the URL below that references what I am trying to accomplish. URL TO EXAMPLE: http://img230.imageshack.us/img230/7008/stickerth2.jpg The first section under "SIMPLE TEXT HEADING 1" is a layout that needs 3 sections or columns. Where the object that holds data for this page has an array of items such as: a,b,c,d,e,f,g,h where the items should be distributed horizontally so the end result is: A B C D E F G H Then the second section is "SIMPLE TEXT HEADING 2" where this section only needs 2 columns and the data should start populating the first column and when it hits the bottom it should wrap up and start going into the second column in a vertical distribution. I am having a hard time trying to figure out how to create Tables or SubReports that could accomodate for such a layout. If anyone knows the type of elements to use or how to accomplish this and can provide some insite that would be great. Else, if it's too difficult to do in Jasper any recommendations on any other Java reporting tool would also be helpfull. Thanks a lot. <img src="http://img230.imageshack.us/img230/7008/stickerth2.jpg" border="0" alt="Image Hosted by ImageShack.us" /> By: gintonic - gintonic_007 RE: Different Column Counts, Wrapping or Colspan 2006-07-29 13:15Hi, With the properties columnCount and printOrder in your .jrxml file, you can set the number of colums and the filling order ( vertical/horizontal) for your report. Is it what you need ? HTH. 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