Page 1 of 1

Databand calcuation condition in footer band

Posted: Thu Aug 26, 2010 10:53 pm
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

Databand calcuation condition in footer band

Posted: Fri Aug 27, 2010 12:55 am
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.