Options for the Windows Print dialog (sys.PrintOptions)ΒΆ

!temp sys.PrintOptions,,i4

Options for the Windows Print dialog

This variable is used to specify options for the Windows Print Manager dialog. It is referred to when a report is run to the Windows Print manager, and when a printer is selected by means of the SelectPrinter() function.

The options take the form of flags, defined in <printer.h>:

PD_SELECTION

Select the Selection button in the Page Range radio button set. This causes the selected text to be printed by default. If neither this flag nor PD_PAGENUMS is set, the All button is set (print all pages).

PD_PAGENUMS

Selects the Pages radio button in the Page Range radio button set. This requires the user to enter the page numbers required.

PD_NOSELECTION

Disables the Selection radio button.

PD_NOPAGENUMS

Disables the Pages radio button and associated edit controls.

PD_PRINTTOFILE

Selects the Print to File checkbox. If this flag is set, the print subsystem queries the user for the name of the output file.

PD_NOWARNING

Suppresses the warning message when there is no default printer.

PD_DISABLEPRINTTOFILE

Disables the Print to File checkbox.

PD_HIDEPRINTTOFILE

Hides the Print to File checkbox.

PD_NONETWORKBUTTON

Hides and disables the Network button.

The default value for sys.PrintOptions is 0 (no flags set).


EXAMPLE

sys.PrintOptions = PD_NONETWORKBUTTON | PD_NOSELECTION | PD_PRINTTOFILE
run report TimeList to "printmanager" ppf = "winpm"