Help Center

AfxSetPrinterColorModefunction

Switches between color and monochrome on color printers.

PrintingfunctionAfxPrinter.incdocumented

Syntax

FUNCTION AfxSetPrinterColorMode (BYREF wszPrinterName AS WSTRING, BYVAL nMode AS LONG) AS BOOLEAN

Parameters

NameDescription
wszPrinterNameThe printer name.
nMode' The following are the possible values: DMCOLOR_COLOR, DMCOLOR_MONOCHROME.

Return value

TRUE or FALSE.

Description

Switches between color and monochrome on color printers.

Reference

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