HotXLS Docs

Orientation property

Portrait or landscape printing mode. Read/write

Syntax

property Orientation: LongWord;

Overview

Orientation can be one of these XlPageOrientation constants: xlPortrait, xlLandscape

Example

This example sets the first sheet to be printed in landscape orientation

Workbook.Worksheets[1].PageSetup.Orientation := xlLandscape;