Jump to content

print when and floating columns left


tdiffenbach

Recommended Posts

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:48

Post edited by: tdiffenbach, at: 2007/10/17 23:53

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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