Megosztás a következőn keresztül:


GETPRINTER( ) Function

Displays the Print dialog box and returns the name of the printer you select.

GETPRINTER( )

Return Values

Character

Remarks

GETPRINTER( ) returns an empty string if you exit the Print dialog box by pressing ESC, choosing the Cancel button, or clicking the Close button.

The display in the print dialog box may differ in different versions of Windows. For local printers in all versions of Windows, and for network printers in Windows 98, the display consists of the printer name. For network printers Windows NT 4.0 or later displays the network path.

Example

CLEAR
cPrinter = GETPRINTER( ) && Displays the Windows Printer Dialog

** Displays the name of the printer chosen ** WAIT WINDOW IIF(EMPTY(cPrinter), 'No printer chosen', cPrinter)

See Also

APRINTERS( ) | SET PRINTER | SYS(102) - Printer Setting | SYS(1037) - Page Setup Dialog Box