leftMargin

Type: Integer

The leftMargin property of the Printer class contains the left margin of the printed page of output. Specify the required value in millimeters; for example:

app.printer.leftMargin := 25;

The code fragment in the following example shows the use of the leftMargin property.

printForm.label6.caption := $S_Line & lineCount.String;
if not app.printer.frameFits(printForm.detail1) then
    timeTaken := (app.clock - startTime).Time;
    printForm.timeTaken1.caption := timeTaken.String;
    printForm.timeTaken2.caption := timeTaken.String;
    checkForHeaderSwap(printForm);
    startTime := app.clock;
    if cb_ChangeMargins.value then
        leftMargin.text := (leftMargin.text.Integer + 5).String;
        app.printer.leftMargin  := leftMargin.text.Integer;
        app.printer.rightMargin := rightMargin.text.Integer + 5;
    endif;
endif;
result := app.printer.print(printForm.detail1);

This property can be modified at any time. The default value is 10.