Help Center

CPrint.PageSetupmethod

Displays a Page Setup dialog box that enables the user to specify the attributes of a printed page.

PrintingmethodCPrint.incdocumented

Syntax

FUNCTION PageSetup (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 Page Setup dialog box or an error occurred, the return value is false.

Description

Displays a Page Setup dialog box that enables the user to specify the attributes of a printed page. These attributes include the paper size and source, the page orientation (portrait or landscape), and the width of the page margins.

Example

DIM pPrint AS CPrint pPrint.PageSetup

Reference

  • Include file CPrint.inc
  • Defined in AfxNova/CPrint.inc:248
  • Documented in Printing/CPrint Class.md
  • Topic: CPrint Class