PageSettings(SectionIndex: Integer): IGxPageSettings;
SectionIndex. Section index.
The PageSettings property returns settings of the section with the specified index.
In regular report a separate sheet is regarded as a section, in express report and workspace the entire document is regarded as a section.
Executing the example requires that the repository contains a regular report with the REPORT identifier.
Sub UserProc;
Var
MB: IMetabase;
Document: IGxDocument;
PageSet: IGxPageSettings;
Begin
MB := MetabaseClass.Active;
Document := MB.ItemById("REPORT").Edit As IGxDocument;
PageSet := Document.PageSettings(0);
PageSet.PaperOrientation := GxPaperOrientation.Landscape;
(Document As IMetabaseObject).Save;
End Sub UserProc;
After executing the example orientation of pages of the first sheet of regular report is changed.
See also: