RpReport:SetLeftMargin() Method

<< Click to Display Table of Contents >>

Navigation:  RpReport Class >

RpReport:SetLeftMargin() Method

Previous pageReturn to chapter overviewNext page

Purpose

This method allows you to specify the left margin in any section of a report.

Syntax

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

Arguments

nValue                The new margin setting in inches
nSection        Optional section number.  The default is the first section after the optional title section.

Description

The left margin for a report must be set in the section to be changed.  Use this method instead of setting the margin on the printer device directly which will not work.

Example

// Set the left margin in section 1 to 1.5 inches

oReport:SetLeftMargin(1.5, 1)