Facing a problem with printing horizontal subreport

0

Facing a problem with Jasper report(i-report).I have 2 reports..one main report and a sub report.the data souce of the sub report is a List which is included in main report.the main report should print vertically and the sub report should print horizontally.when I am displaying the Report from Junit from eclipse, it is working fine. But whenever trying to show the report from server, the report is not shown in proper way,sub-report is printing vertically.

debalinads's picture
Joined: Mar 7 2013 - 3:47am
Last seen: 6 years 4 months ago

1 Answer:

0

As far I can see, it depends on the output format you select. In xls it works, as pdf or internal preview unfortunately not. So, if your question about "on the server" means jasperserver, the reply is "no". That does not work.

You will find many posts asking the same question if you use the search words "combine horizontal and vertical subreport"

But if you have your own application generating the report, you could generate the single, different-oriented subreports one by one, and then put them all together using the iText library or the JR PDFExporter.

Have a look here:

http://ngjweb.wordpress.com/2011/12/09/fix-jasper-report-multi-oriented-pages/

or here:

http://community.jaspersoft.com/questions/513721/landscape-and-portrait-layout-same-report

Cheers, Thomas

http://www.thomaszimmer.net

Thomas Zimmer's picture
Joined: Oct 2 2012 - 1:35am
Last seen: 5 days 9 hours ago
Feedback