Page 1 of 1

setting page size and margin

Posted: Tue Jan 20, 2009 1:40 pm
by shmuly
Can I set the page size and margin based on a field from the database? if yes, how?

setting page size and margin

Posted: Wed Jan 21, 2009 7:47 am
by Edward
Hi,

You can do it in the BeforePrint event of the page as follows:

Code: Select all

this.Page1.Margins = new Stimulsoft.Report.Components.StiMargins(MyDataSource.left, MyDataSource.right, MyDataSource.top, MyDataSource.bottom);
Thank you.