setting page size and margin

Stimulsoft Reports.NET discussion
Post Reply
shmuly
Posts: 58
Joined: Wed Jul 05, 2006 2:19 pm

setting page size and margin

Post by shmuly »

Can I set the page size and margin based on a field from the database? if yes, how?
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

setting page size and margin

Post 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.
Post Reply