I am trying my utmost to get the Print Order working when set to Horizontal on the List component. It works fine when it is set to Vertical, but it does not make any difference when it is set to Horizontal. I have tried repositioning the fields in the list component to be beneath each other (so that it can grow horizontally, but it still grows vertically). I am using iReports 3.7.1 and JasperServer 3.7.1
Any help would be greatly appreciated!
Post Edited by willemderu at 05/04/2010 11:49
I had to deal with printing horizontal list and couldn't find a way to work with the List components.
However, I did get it to work with displaying with a subreport. In my case of printing a calendar, I want it to traverse horizontally for a set amount of times.
I set the following properties in the subreport:
- Print order: Horizontal
- Columns: 7 (I need 7 columns)
This should force the report to print each elemental of the list horizontally for (7 times) and then move on to the next row.
From what I'm reading there's a sample with a horizontal print order but no one can replicate it?
I'm running into the same issue. I really need to print the list horizontally. It takes up too much room vertically and I don't want to put a subreport in there.
I know this an old post, but there doesn't seem to be a more recent thread and I could not find a suitable solution elsewhere.
I too was having the same problem implementing the print order attribute which did not appear to make any difference when changed from Vertical to Horizontal. However I realised that I was attemping to implement it incorrectly and didn't understand that it requires the use of columns in the subreport that is being itterated over.
When set to Horizontal the report will be generated for each column before moving down to the next row, so if the subreport contains a single column then this will act like the print order is set to vertical. Setting the columns to 2 will see two itterations of the subreport on a single line before moving to the next row.
Hope this helps anyone with this issue.
Post Edited by ph0en1x at 04/14/2011 15:33
Post Edited by ph0en1x at 04/14/2011 15:43
I find out the solution for it.
Issue is not with List. It is with two attributes "Columns" and "Print Order" at report level.
Default value of Columns is 1 so if you change it to some higher value like 2,3 or some thing else and set Print order as Horizontal then it start working as expected.
Only catch it only 1st column will be available for designing as remain columns will printed automatically.
I set the list layout to vertical, ignore width to true and print order to horizontal it started working as expected but,
I'm struggling to configure the list to print elements in the next line when the right margin is reached and all elements don't fit one line.
Finally I made it work with the solution on the following topic: