Supressing Bands

Stimulsoft Reports.NET discussion
Post Reply
jellis
Posts: 22
Joined: Wed Jun 27, 2007 5:28 am
Location: United Kingdom

Supressing Bands

Post 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.
Brendan
Posts: 309
Joined: Sun Jul 16, 2006 12:42 pm
Location: Ireland

Supressing Bands

Post by Brendan »

Yes, set its Enabled property to false.
jellis
Posts: 22
Joined: Wed Jun 27, 2007 5:28 am
Location: United Kingdom

Supressing Bands

Post 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.
jellis
Posts: 22
Joined: Wed Jun 27, 2007 5:28 am
Location: United Kingdom

Supressing Bands

Post by jellis »

Ignore that Brendan - just found the Calc Invisible property, all working fine now. Thanks again.
Brendan
Posts: 309
Joined: Sun Jul 16, 2006 12:42 pm
Location: Ireland

Supressing Bands

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