Page 1 of 1

Shrink/Hide Empty Fields on a Group Foooter

Posted: Thu Feb 21, 2008 12:48 am
by ptabkra
Hi All,
I am printing 2 amount fields on a group footer. The group header/footer works fine for me since I can print the data for each transaction no and page break it.
Now, I am printing separate amount totals per transaction placed on the group footer:

Amt1 will not be displayed when it's Null or = 0
Amt2 the overall total will always be displayed.

Q1: How can I make Amt 1 appear/hide?
Q2: How can I make Amt2 shift up when Amt 1 is hidden? (case when amt1 is null or =0)

I've tried some options of Dock, Can shrink properties and it's not helpful..
Any suggestions please?

Thanks.

Shrink/Hide Empty Fields on a Group Foooter

Posted: Thu Feb 21, 2008 3:38 am
by EDV Gradl
You put Amt in is sepate FooterBand and add this to the beforePrintEvent of the footerband;

Code: Select all

this.FooterBandAmt1.Enabled = Amt1 != 0 && Amt1 != null
Marco

Shrink/Hide Empty Fields on a Group Foooter

Posted: Sun Feb 24, 2008 8:55 pm
by ptabkra
Yep. Thanks Marco, your suggestion worked :)
I've added another group header/footer pair and used the BeforePrintEvent condition.