RpReport:SetPaperWidth() Method

<< Click to Display Table of Contents >>

Navigation:  RpReport Class >

RpReport:SetPaperWidth() Method

Previous pageReturn to chapter overviewNext page

Purpose

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

Syntax

<oReport>:SetPaperWidth(nValue, [nSection])  nValue

Arguments

lValue                The new paper width in inches to use.  For more information, see PtrDevice:PaperWidthInches.
nSection        Optional section number.  The default is the first section after the optional title section.

Description

The paper width 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

// Set the paper width to 8.5 inches in section 2

oReport:SetPaperWidth(8.5, 2)