tdiffenbach Posted October 18, 2007 Share Posted October 18, 2007 I've given several "columns" on a jasper report "print when" expressions which conditionally suppress the printing of those columns. I'd like columns to the right of the suppressed columns to "float" left when the columns to their left are suppressed. E.g.:No columns suppressed:Code:[Col1 Header][Col2 Header][Col3 Header][Col1 Data ][Col2 Data ][Col3 Data ] Column 1 suppressed with a print when expression:Code:[code][Col2 Header][Col3 Header][Col2 Data ][Col3 Data ] Columns 1 and 2 suppressed with a print when expression:Code:[code][Col3 Header][Col3 Data ] The "columns" are actually static text and text fields which are vertically aligned, over several bands. (In fact what I've trying to do is "rotate" the data (monthly figures), depending on a start month, to "wrap around" a year boundary. So my end goal is something like this, if e.g., the start month were month three (I've elided months 4 through 11):Code:[code][Month3 Header] ... [Month12 Header][Month1 Header][Month2 Header][Month3 Data ] ... [Month12 Data ][Month1 Data ][Month2 Data ]) Is this possible using jasper "out of the box"? Is it possible if I extend jasper with my own Java code? My preferred output is PDF. Thanks. Post edited by: tdiffenbach, at: 2007/10/17 23:47 Post edited by: tdiffenbach, at: 2007/10/17 23:48Post edited by: tdiffenbach, at: 2007/10/17 23:53 Link to comment Share on other sites More sharing options...
lucianc Posted October 18, 2007 Share Posted October 18, 2007 JasperReports doesn't do horizontal floating. You can dynamically alter a JasperDesign object by repositioning the elements, then compiling the design and filling the report. Regards,Lucian 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