Help Center

AfxGetPrinterRateUnitfunction

Returns the printer's rate unit.

PrintingfunctionAfxPrinter.incdocumented

Syntax

FUNCTION AfxGetPrinterRateUnit (BYREF wszPrinterName AS WSTRING) AS LONG

Parameters

NameDescription
wszPrinterNameThe printer name.

Return value

The printer's print rate. Can be one of the following values:

  • PRINTRATEUNIT_CPS Characters per second.
  • PRINTRATEUNIT_IPM Inches per minute.
  • PRINTRATEUNIT_LPM Lines per minute.
  • PRINTRATEUNIT_PPM Pages per minute.

If the function returns -1, this may mean either that the capability is not supported or there was a general function failure.

Description

Returns the printer's print rate.

Reference

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