CPrint.ChoosePrintermethod
Displays the printer dialog to select a printer.
Syntax
FUNCTION ChoosePrinter (BYVAL hwndOwner AS HWND = NULL) AS BOOLEAN
Parameters
| Name | Description | |
|---|---|---|
hwndOwner | Optional. A handle to the window that owns the dialog box. This member can be any valid window handle, or it can be NULL if the dialog box has no owner. |
Return value
BOOLEAN. If the user clicks the OK button, the return value is true. If the user canceled or closed the Print dialog box or an error occurred, the return value is false.
Description
Displays a Print Dialog Box to select a printer.
Example
DIM pPrint AS CPrint pPrint.ChoosePrinter
Reference
- Include file
CPrint.inc - Defined in AfxNova/CPrint.inc:199
- Documented in Printing/CPrint Class.md
- Topic: CPrint Class