Help Center

AfxSetPrinterTrayfunction

Sets the paper source.

PrintingfunctionAfxPrinter.incdocumented

Syntax

FUNCTION AfxSetPrinterTray (BYREF wszPrinterName AS WSTRING, BYVAL nTray AS LONG) AS BOOLEAN

Parameters

NameDescription
wszPrinterNameThe printer name.
nTrayThe paper source.

Return value

TRUE or FALSE.

Description

Sets the paper source. Can be one of the following values, or it can be a device-specific value greater than or equal to DMBIN_USER.

The paper source can be one of the following values, or it can be a device-specific value greater than or equal to DMBIN_USER.

  • DMBIN_UPPER = 1
  • DMBIN_LOWER = 2
  • DMBIN_MIDDLE = 3
  • DMBIN_MANUAL = 4
  • DMBIN_ENVELOPE = 5
  • DMBIN_ENVMANUAL = 6
  • DMBIN_AUTO = 7
  • DMBIN_TRACTOR = 8
  • DMBIN_SMALLFMT = 9
  • DMBIN_LARGEFMT = 10
  • DMBIN_LARGECAPACITY = 11
  • DMBIN_CASSETTE = 14
  • DMBIN_FORMSOURCE = 15

Reference

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