Jump to content
JasperReports Library 7.0 is now available ×

Facing a problem with printing horizontal subreport


Recommended Posts

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.

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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:


or here:


Cheers, Thomas


Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...