IGxPageSettings.PaperOrientation

Syntax

PaperOrientation: GxPaperOrientation;

Description

The PaperOrientation property determines page orientation.

Example

Sub Main;

Var

MB: IMetabase;

MObj: IMetabaseObject;

Report: IPrxReport;

PageSet: IGxPageSettings;

Begin

MB:=MetabaseClass.Active;

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

Report:=MObj As IPrxReport;

PageSet:=Report.ActiveSheet.PageSettings;

PageSet.PaperOrientation:=GxPaperOrientation.Portrait;

MObj.Save;

End Sub Main;

After executing the example the portrait page orientation is set for the regular report with the Report identifier.

See also:

IGxPageSettings