Custom Page Margin for succeeding pages after printing Page 1
Posted: Thu Jan 08, 2009 1:54 am
Report is printing on a pre-designed paper and uses 2 different page margins.
MarginA, a definite margin for page 1 and MarginB, a different margin for the succeeding/next pages.
I tried to set MarginA as a default for Page1,
and used this code for the use of MarginB: BeforePrintEvent of Page1
This should change page margins after first Page is printed, right?
But it doesnt work OK on my test.
When 2 or more pages are being printed, it uses MarginB for all pages.
Any thoughts about this please?
Thanks in advance!
MarginA, a definite margin for page 1 and MarginB, a different margin for the succeeding/next pages.
I tried to set MarginA as a default for Page1,
and used this code for the use of MarginB: BeforePrintEvent of Page1
Code: Select all
if ( PageNumber > 1 )
{
Page1.Margins.Left = 3.0;
Page1.Margins.Right = 2.0;
Page1.Margins.Top = 6.5;
Page1.Margins.Bottom = 2.5;
}
But it doesnt work OK on my test.
When 2 or more pages are being printed, it uses MarginB for all pages.
Any thoughts about this please?
Thanks in advance!