IGxPageSettings.Margins

Syntax

Margins: IGxPageMargins;

Description

The Margins property returns an object that contains page margins.

Example

Sub Main;

Var

MB: IMetabase;

MObj: IMetabaseObject;

Report: IPrxReport;

PageSet: IGxPageSettings;

PageMarg: IGxPageMargins;

h: Double;

Begin

MB:=MetabaseClass.Active;

MObj:=MB.ItemById("Report").Bind;

Report:=MObj As IPrxReport;

PageSet:=Report.ActiveSheet.PageSettings;

PageMarg:=PageSet.Margins;

h:=PageMarg.Left;

End Sub Main;

After executing the example the "h" variable contains the left margin of the regular report page. The identifier of the regular report - Report.

See also:

IGxPageSettings