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

Print subreport horizontal


fatsy

Recommended Posts

Hallo,

Please can someone help me:(

I've have a masterreport that is printed vertically and in it I have a subreport that is suppossed to be horizontally printed unfortunately it is also printed vertically.

How can I print the subreport horizontally or is it not possible.

I have gone through the forum looking out for a solution but didin't succeed.

Hopefully someone out the will answer my question which I'm stuck on for along time now.

Please!!!!!:(

 

Thanks in advance.

Fatsy

Link to comment
Share on other sites

  • Replies 10
  • Created
  • Last Reply

Top Posters In This Topic

Hallo acer,

To print a subreport horizontally just use the Tag printOrder="Horizontal".

My problem why it did work was because I gave the <subreportExpression> as relative Path instead of absolute path.

I hope this helps

Regards

Fatsy

Link to comment
Share on other sites

  • 3 months later...

I don't really get it, how can you change the print order of a subreport by changing the SubreportExpression to include a relative path ?

 

My main report has a vertical print order, and I have just included a subreport that prints a list of elements horizontally, except when it is included in the main report. It's printed vertically.

Link to comment
Share on other sites

Well personally I know you can do this to make your main report print horizontally, but if you have selected the wrong data from the subreport - and even though the subreport is set to print horizontally - you could be trying to fix the wrong problem, if the problem is really the datasource and the way the data is retrieved (it could display in the wrong way). Currently I am trying to solve a problem related to how data is retrieved.
Link to comment
Share on other sites

How is it possible to successfully retrieve a subset from an XML datasource, without having the first element to repeat itself all over?

 

The problem is no longer horizontal printing.

 

I know I have different values in my dataset and I need an xpath expression that successfully retrieves n nodes with different amound of (sub)values, starting from the root I have defined as a parameter to the subset (when setting the datasource expression)

 

What I did was to set an attribute on each subset, so that I select out only the subset with @id='1' for instance ... but little did it help. As all subsets with concurrent id's are retrieved. I am fresh out of ideas.

 

I did something like /root/mydata[@id='1'/subset]

 

mydata[@id=2] has another amount of subset, but my expression selects out all mydata elements.

 

:blush:

Link to comment
Share on other sites

  • 4 months later...

Hello,

I tried what you said, but I still have the exception:

"Subreport overflowed on a band that does not support overflow."

I read from somewhere that is because a horizontal printing :S

by the way, I'm using jasperreports-1.2.5 as a tecnology restriction.

Can somebody help me??

 

codyjasperForge wrote:

From inside the subreport (active window is subreport)

Choose -> Edit -> Report Properties -> Print Order -> Horizontal...

Does this help at all?
Link to comment
Share on other sites

  • 6 years later...
  • 1 year later...

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