Xbasic

UI_PRINTER_SETTINGS_GET Function

Syntax

V UI_PRINTER_SETTINGS_GET(C Printer_Name ,P settings)

Arguments

Printer_Name

The name of a printer.

settings

A pointer variable that will receive the printer settings.

Description

The UI_PRINTER_SETTINGS_GET() function retrieves the configuration settings of a printer.

Example

dim ptr as P
dim ptr.dummy as L = .t.
ui_printer_settings_get("Compaq Laser Printer LNM40 (PCL)", ptr)
?ptr
= collate = .T.
color = "Monochrome"
copies = 1
defaultsource = "Automatically Select"
dummy = .T.
orientation = "portrait"
papersize = "Letter"
truetype = "Download"

Limitations

Desktop applications only.

See Also