Disable PageFooterBand1 in last page

Stimulsoft Ultimate discussion
Post Reply
shahabi
Posts: 7
Joined: Mon Jan 07, 2013 8:20 am

Disable PageFooterBand1 in last page

Post 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;
}
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Disable PageFooterBand1 in last page

Post 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.
shahabi
Posts: 7
Joined: Mon Jan 07, 2013 8:20 am

Re: Disable PageFooterBand1 in last page

Post by shahabi »

Thanks for replay Mr. Andreyanov
Andrew
Posts: 4107
Joined: Fri Jun 09, 2006 3:58 am

Re: Disable PageFooterBand1 in last page

Post by Andrew »

Hello,

Let us know if you have additional questions.

Thank you.
Post Reply