Help Center

AfxSetPrinterDuplexModefunction

Sets the printer duplex mode.

PrintingfunctionAfxPrinter.incdocumented

Syntax

FUNCTION AfxSetPrinterDuplexMode (BYREF wszPrinterName AS WSTRING, BYVAL nDuplexMode AS LONG) AS BOOLEAN

Parameters

NameDescription
wszPrinterNameThe printer name.
nDuplexModeOne of these values:
DMDUP_SIMPLEX = Single sided printing.
DMDUP_VERTICAL = Page flipped on the vertical edge.
DMDUP_HORIZONTAL = Page flipped on the horizontal edge.

Return value

TRUE or FALSE.

Description

Sets the printer duplex mode.

Reference

  • Include file AfxPrinter.inc
  • Defined in AfxNova/AfxPrinter.inc:897
  • Documented in Printing/Printer Functions.md
  • Topic: Printer Functions