Function PrinterSetupDialog(None)

PrinterSetupDialog

With the procedure PrinterSetupDialog you can open the standard printer setup dialog. This same dialog is also available via the menu command File - Print Setup.

PrinterSetupDialog

Arguments

None

Return Value

If the setup dialog is cancelled, the procedure PrinterSetupDialog returns 0. Otherwise it will return 1.

Example

You can use the procedure PrinterSetupDialog to make sure that a user selects a PDF printer:

isPDFPrinter := 0;
Repeat
        PrinterGetCurrentName(currentPrinter);
        if FindString(currentPrinter,"PDF") then
                isPDFPrinter := 1;
                break;
        endif;
        DialogMessage("Please select a PDF printer.");
        break when PrinterSetupDialog() = 0;
EndRepeat;

See also

The procedures PrinterGetCurrentName.