Page 1 of 1

Supressing Bands

Posted: Tue Jun 17, 2008 7:01 am
by jellis
Is it possible to suppress an entire band (including the data band)? Effectively set 'Print On' to 'Never', or have a 'Supress' property on a band?

Jon.

Supressing Bands

Posted: Tue Jun 17, 2008 7:27 am
by Brendan
Yes, set its Enabled property to false.

Supressing Bands

Posted: Tue Jun 17, 2008 8:30 am
by jellis
Thanks Brendan, that works..but...
I want the data suppressed so it doesn't show on the print, but the summaries in the group footer to still show.
so I have

GROUP HEADER > want this to print
DATA BAND > don't want this to print
GROUP FOOTER (containing sums of the stuff in the data band) > want this to print

The problem I now have is if I suppress the data band, my sums all come out as zero.

In Crystal Reports (which is what I'm more used to), the supress property would prevent a band showing but code & data behind a band would still execute/be taken into account.

Am I missing something obvious?

Jon.

Supressing Bands

Posted: Tue Jun 17, 2008 8:36 am
by jellis
Ignore that Brendan - just found the Calc Invisible property, all working fine now. Thanks again.

Supressing Bands

Posted: Tue Jun 17, 2008 9:19 am
by Brendan
jellis wrote: GROUP HEADER > want this to print
DATA BAND > don't want this to print
GROUP FOOTER (containing sums of the stuff in the data band) > want this to print

You can also set the Databand's Height property to zero so that it doesn't render anything to the page but still executes.