Page 1 of 1

Disable PageFooterBand1 in last page

Posted: Mon Jan 07, 2013 9:19 am
by shahabi
hello,
I Want Disable PageFooterBand1 in last page to use of under code int After Print PageFooterBand1, but TotalPageCount in code do not work correct
if (TotalPageCount== PageNumber)
{
this.PageFooterBand1.Enabled = false;
}
else
{
this.PageFooterBand1.Enabled = true;
}

Re: Disable PageFooterBand1 in last page

Posted: Tue Jan 08, 2013 11:59 am
by HighAley
Hello.
shahabi wrote:I Want Disable PageFooterBand1 in last page to use of under code int After Print PageFooterBand1, but TotalPageCount in code do not work correct
if (TotalPageCount== PageNumber)
{
this.PageFooterBand1.Enabled = false;
}
else
{
this.PageFooterBand1.Enabled = true;
}
You should set the Number of Pass property of the report to Double Pass and use next code:

Code: Select all

if (isSecondPass && TotalPageCount== PageNumber)
{
this.PageFooterBand1.Enabled = false;
}
else
{
 this.PageFooterBand1.Enabled = true;
}
Thank you.

Re: Disable PageFooterBand1 in last page

Posted: Tue Jan 08, 2013 1:26 pm
by shahabi
Thanks for replay Mr. Andreyanov

Re: Disable PageFooterBand1 in last page

Posted: Wed Jan 09, 2013 3:31 am
by Andrew
Hello,

Let us know if you have additional questions.

Thank you.