fatsy Posted April 11, 2007 Share Posted April 11, 2007 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 More sharing options...
fatsy Posted April 11, 2007 Author Share Posted April 11, 2007 :) The problem I had was the report directory.Printing sub report horizontally now works Link to comment Share on other sites More sharing options...
acer Posted April 12, 2007 Share Posted April 12, 2007 Hey Fatsy, how did you print a sub report horizontallyhttp://www.jasperforge.org/components/com_joomlaboard/emoticons/w00t.png:woohoo: can you give me some more details CheersAadi Link to comment Share on other sites More sharing options...
fatsy Posted April 12, 2007 Author Share Posted April 12, 2007 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 RegardsFatsy Link to comment Share on other sites More sharing options...
Gustaf Posted July 13, 2007 Share Posted July 13, 2007 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 More sharing options...
codyjasperForge Posted July 13, 2007 Share Posted July 13, 2007 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 More sharing options...
Gustaf Posted July 15, 2007 Share Posted July 15, 2007 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 More sharing options...
Gustaf Posted July 15, 2007 Share Posted July 15, 2007 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 More sharing options...
amedel Posted November 20, 2007 Share Posted November 20, 2007 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 :Sby 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 More sharing options...
soumyasubhadarshib Posted May 23, 2014 Share Posted May 23, 2014 how..plz explain.. Link to comment Share on other sites More sharing options...
kalpesh.chavda Posted June 18, 2015 Share Posted June 18, 2015 1 > go to report properties.2> set print order : Horizontal3> set Columns as 15 or whatever you like4> set Column width 70 or whatever you like Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now