Jump to content
We've recently updated our Privacy Statement, available here ×

How to iterate a subreport from main report to print it horizontally ?


dhiraj.kene

Recommended Posts

Hi All,

I am using jasper report 4.1.1 .

I need to iterate the subreport so that the elements of the subreport (i.e. the whole sub report )should be printed horizontally  multiple times ( depending on some condition dynamically) while exporting to excel.

I even tried the list component and the solutions available for it like increase the column number and making the print order to horizontally but none of it work.

Please advice.

Regards

Dhiraj Kene

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Have you defined your SubReport design to have multiple colums and set the column direction to "LeftToRight" and the print order to "horizontal"?

This is how I use some Master-SubReport design for printing labels and it's working fine!

 

hth + regards

C-Box

 

 

Link to comment
Share on other sites

Hi C-box ,

Thanks for the reply

I had set the print order to horizontal .But these property alone was not solving my problem.

I had done the following steps and solved the problem

1)Setting the print order to horizontal as suggested by you in master report.

2)I had set the column number to 10 columns in subreport(It can be set to any number) and set it to print the columns horizontally.

3)Iterated the subreport from master report for some set of records .

The subreport was getting printed horizonatally for the set of records.

 

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...