RpReport:SetLandscape() Method

<< Click to Display Table of Contents >>

Navigation:  RpReport Class >

RpReport:SetLandscape() Method

Previous pageReturn to chapter overviewNext page

Purpose

This method allows you to specify the landscape setting for any section of a report.

Syntax

<oReport>:SetLandscape(lValue, [nSection])  lValue

Arguments

lValue                A logical value indicating whether the section should print in landscape mode.
nSection        Optional section number.  The default is the first section after the optional title section.

Description

The landscape setting for a report section must be set in the section to be changed.  Use this method instead of setting the value on the printer device directly which will not work.

Example

// Print section 2 in landscape mode

oReport:SetLandscape(TRUE, 2)