Right: Double;
The Right property determines value of the right margin.
Executing the example requires a regular report with the Report identifier in repository.
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.Right := 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: