RpReport:SetPaperSize() Method

<< Click to Display Table of Contents >>

Navigation:  RpReport Class >

RpReport:SetPaperSize() Method

Previous pageReturn to chapter overviewNext page


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


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


lValue                The new paper size constant to use.  For more information, see PtrDevice:PaperSize.
nSection        Optional section number.  The default is the first section after the optional title section.


The paper size 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.


// Print section 2 on legal size paper

oReport:SetPaperSize(DMPAPER_LEGAL, 2)