tylerahrens Posted May 4, 2016 Share Posted May 4, 2016 My apologies if I've missed this elsewhere in the forums. I've been looking for a solution for a couple days, and can get close to what I want, but not able to get it 100%. I have a report using crosstab data. It is being rendered on normal letter size paper output. The issue is that there may be too many columns to display all data at this size, causing the rightmost columns to be put on the bottom of the first "row" or columns. I think this is acceptable for the report viewer, but when I try to export the report to XLS, it causes the columns to not line up, with the rightmost columns being on the bottom, which prevents me from being able to sort the data effectively. So, ultimately, what I need is a way to run the report as is, let the extra columns go to the bottom in the report viewer, but to have the XLS export keep all columns running from left to right. This seems like it should be relatively simple, but I'm struggling to find a solution to this. Any help would be appreciated. Link to comment Share on other sites More sharing options...
tylerahrens Posted May 4, 2016 Author Share Posted May 4, 2016 I'm using iReport Designer 5.5.2 Link to comment Share on other sites More sharing options...
asimkin Posted May 6, 2016 Share Posted May 6, 2016 Hi,you may try using a property to ignore Page Width value for crosstabs:http://jasperreports.sourceforge.net/config.reference.html#net.sf.jasperreports.crosstab.ignore.widthTry to set it up to true at the report level and re-test the issue.Best regards,Andrew Link to comment Share on other sites More sharing options...
stephen.horntba.group Posted June 13, 2016 Share Posted June 13, 2016 As far as I can see that doesn't work as the OP intends, nor does it work on my own report. To recap, I believe we both need the CrossTab to respect the page width when rendered on screen (such as PDF or HTML), but to use as many columns as it likes when rendered in Excel. Setting the property above certainly does what is needed, but it does it all the time - so chopping off the columns when rendered on screen, but fine in Excel.What is actually needed is a property like the other Excel ones, something like...net.sf.jasperreports.export.xls.crosstab.ignore.widthBut alas it doesn't exist. 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