Custom Page Margin for succeeding pages after printing Page 1

Stimulsoft Reports.NET discussion
Post Reply
ptabkra
Posts: 27
Joined: Tue Oct 16, 2007 10:33 pm

Custom Page Margin for succeeding pages after printing Page 1

Post 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!

Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Custom Page Margin for succeeding pages after printing Page 1

Post 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.
ptabkra
Posts: 27
Joined: Tue Oct 16, 2007 10:33 pm

Custom Page Margin for succeeding pages after printing Page 1

Post by ptabkra »

Hi!

I added an ELSE clause and assigned values (as default for Page1), the report is working ok. Thanks!
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Custom Page Margin for succeeding pages after printing Page 1

Post by Edward »

Hi,

Please let us know if any help is required.

Thank you.
ptabkra
Posts: 27
Joined: Tue Oct 16, 2007 10:33 pm

Custom Page Margin for succeeding pages after printing Page 1

Post 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!
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Custom Page Margin for succeeding pages after printing Page 1

Post by Vital »

Hello,

Problem fixed. Please check build from 19 Jan.

Thank you.
Post Reply