Page 1 of 1

Print in the last page using event

Posted: Mon Oct 19, 2015 8:31 pm
by Jorge Henrique
Dear, Good afternoon!

I am using the following expression at the event before printing, so that the Panel component will appear only on the last page:

Code: Select all

if ( PageNumber != TotalPageCount )
{
this.Panel5.Enabled = false;
}
But validation is not going perfectly, the component is printed on all pages of the report. (File 1)
I'm not using the functionality to print only on the last page, because the component fills the page with an empty space. (File 2)

Please find attached the quoted report layout.

Thank you for your attention!

Re: Print in the last page using event

Posted: Tue Oct 20, 2015 6:04 am
by HighAley
Hello, Jorge.

You don't need to use any additional code.
Just set the Print on All Pages property of the Footer band to False.

Thank you.

Re: Print in the last page using event

Posted: Tue Oct 20, 2015 5:16 pm
by Jorge Henrique
Hello Aleksey,

I set false for the property Print on All Pages of the Footer Band.
Also set to Print Only the Last Page to Print On property of Panel 3.
However, the result is unexpected. The page is still with an empty space. (File 1)
The codes were discussed, not to affect the process.

The following attached file with the changes.

Re: Print in the last page using event

Posted: Wed Oct 21, 2015 9:49 am
by HighAley
Hello, Jorge.

All components that are placed exactly on a page are static.
Please, put the Panel3 on a Report Summary band or any other band.

Thank you.