Shrink/Hide Empty Fields on a Group Foooter

Stimulsoft Reports.NET discussion
Post Reply
ptabkra
Posts: 27
Joined: Tue Oct 16, 2007 10:33 pm

Shrink/Hide Empty Fields on a Group Foooter

Post 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.
EDV Gradl
Posts: 228
Joined: Sat Jun 17, 2006 9:50 am
Location: Germany

Shrink/Hide Empty Fields on a Group Foooter

Post 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
ptabkra
Posts: 27
Joined: Tue Oct 16, 2007 10:33 pm

Shrink/Hide Empty Fields on a Group Foooter

Post by ptabkra »

Yep. Thanks Marco, your suggestion worked :)
I've added another group header/footer pair and used the BeforePrintEvent condition.
Post Reply