RpReport:SetPaperWidth() Method

<< Click to Display Table of Contents >>

Navigation:  RpReport Class >

RpReport:SetPaperWidth() Method

Previous pageReturn to chapter overviewNext page


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


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


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.


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.


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

oReport:SetPaperWidth(8.5, 2)