Databand calcuation condition in footer band

Stimulsoft Reports.NET discussion
Post Reply
Vikas
Posts: 20
Joined: Sat Jul 31, 2010 4:12 am
Location: Delhi

Databand calcuation condition in footer band

Post by Vikas »

Hi

I have the calculation of the DataBand using the count function.

but my problem is that -

If I have the count as zero and I am dividing this zero by any value then "Attempt to divide by Zero exception" is displaying.

I need to give this condition or if no records are there then no display the footer band in the report.

Please suggest me.

Thanks
Vikas
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Databand calcuation condition in footer band

Post by Alex K. »

Hello,

You can use the following code in events "Before print" on Footer component:

Code: Select all

if (Div(Variable, CountVariable) == 0 )
{
	GroupFooterBand1.Enabled = false;
}
Thank you.
Post Reply