Page 1 of 1
Is it possible to change marings while rendering?
Posted: Fri Oct 23, 2009 7:31 am
by munich
Hello,
I would like to have rendered the first (rendered) page with different margins as the following pages and use only one (template) page in the report.
Is this possible via code or in any other way?
Thanks for any help.
Is it possible to change marings while rendering?
Posted: Sat Oct 24, 2009 1:20 am
by Jan
Hello,
You can use following script in BeforePrintEvent of page:
Code: Select all
if (PageNumber == 1)Page1.Margins = new StiMargins(1, 1, 1, 1);
else Page1.Margins = new StiMargins(3, 3, 3, 3);
Thank you.
Is it possible to change marings while rendering?
Posted: Wed Oct 28, 2009 3:44 am
by munich
Hello Jan,
your advice gave me the hint for doing the same in the Stimulsoft.Report.StiOptions.Engine.GlobalEvents.ReportRendering-Event. And it works great!
:biggrin:
I thank you very much for your help!
Have a nice day.
Is it possible to change marings while rendering?
Posted: Wed Oct 28, 2009 6:16 am
by Edward
Hi
You are very welcome, please let us know if any help is required.
Thank you.