Help Center

CPrint.ChoosePrintermethod

Displays the printer dialog to select a printer.

PrintingmethodCPrint.incdocumented

Syntax

FUNCTION ChoosePrinter (BYVAL hwndOwner AS HWND = NULL) AS BOOLEAN

Parameters

NameDescription
hwndOwnerOptional. 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