RpPrinter:PrintAreaWidth Access

<< Click to Display Table of Contents >>

Navigation:  RpPrinter & PtrDevice Class Overview > RpPrinter Class >

RpPrinter:PrintAreaWidth Access

Previous pageReturn to chapter overviewNext page
Type        Float

Purpose

Returns the width of the print area in the current unit of measure.  The formula is paper width - left margin - right margin.

Example

// Don't go off the end of the page

if oRpPrinter:GetTextLength("Hello World!") > ;

oRpPrinter:PrintAreaWidth

            // try a smaller font

endif