Page 1 of 1

Custom Page Margin for succeeding pages after printing Page 1

Posted: Thu Jan 08, 2009 1:54 am
by ptabkra
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

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;
	}
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!


Custom Page Margin for succeeding pages after printing Page 1

Posted: Thu Jan 08, 2009 12:06 pm
by Edward
The issue for EngineV2 is confirmed, for EngineV1 all worked as it must work.

We willl let you know in this topic about our results.

Thank you.

Custom Page Margin for succeeding pages after printing Page 1

Posted: Thu Jan 15, 2009 2:40 am
by ptabkra
Hi!

I added an ELSE clause and assigned values (as default for Page1), the report is working ok. Thanks!

Custom Page Margin for succeeding pages after printing Page 1

Posted: Thu Jan 15, 2009 2:53 am
by Edward
Hi,

Please let us know if any help is required.

Thank you.

Custom Page Margin for succeeding pages after printing Page 1

Posted: Thu Jan 15, 2009 8:38 pm
by ptabkra
Alright, the if-else statement and codes I've added on the BeforePrintEvent of Page1 is causing
issues when the report is exported to Word2007 file and Rich Text File format.

It is displaying OK on preview though, the issue is on the exported file format.

Any thoughts for the fix or workaround on this please?

Thanks!

Custom Page Margin for succeeding pages after printing Page 1

Posted: Mon Jan 19, 2009 3:14 am
by Vital
Hello,

Problem fixed. Please check build from 19 Jan.

Thank you.