GETPRINTER( ) Function
Displays the Print dialog box and returns the name of the printer you select.
GETPRINTER( )
Character
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.
CLEAR
cPrinter = GETPRINTER( ) && Displays the Windows Printer Dialog
** Displays the name of the printer chosen ** WAIT WINDOW IIF(EMPTY(cPrinter), 'No printer chosen', cPrinter)
APRINTERS( ) | SET PRINTER | SYS(102) - Printer Setting | SYS(1037) - Page Setup Dialog Box