IGxMargins.Top

Syntax

Top: Double;

Description

The Top property determines value of the top margin.

Example

Executing the example requires that the repository contains a regular report with the Report identifier.

Sub Main;

Var

MB: IMetabase;

MObj: IMetabaseObject;

Report: IPrxReport;

PageSet: IGxPageSettings;

PageMarg: IGxPageMargins;

Begin

MB := MetabaseClass.Active;

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

Report := MObj As IPrxReport;

PageSet := Report.ActiveSheet.PageSettings;

PageSet.PaperFormat := GxPaperFormat.A3;

PageMarg := PageSet.Margins;

PageMarg.Top := 15.5;

MObj.Save;

End Sub Main;

After executing the example 15.5 mm bottom margin is set for pages of the regular report.

See also:

IGxMargins