RpReport:SetPaperLength() Method

<< Click to Display Table of Contents >>

Navigation:  RpReport Class >

RpReport:SetPaperLength() Method

Previous pageReturn to chapter overviewNext page


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


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


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


The paper length 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 length to 11 inches in section 2

oReport:SetPaperLength(11.0, 2)