Constants - Paper Sources¶
The dmDefaultSource member of a cPrintDialog DEVMODE structure can be set as the desired paper source.
The following predefined constants are available. Printer manufacturers may have extended the list with driver-specific numbers; for this, use the PrinterDriverAnalyzer tool to find out the value to be used for a specific printer.
| Constant | Value | Comment |
|---|---|---|
DMBIN_UPPER |
1 |
The upper bin (tray) of the printer. |
DMBIN_ONLYONE |
1 |
Used if the printer has only one paper source. |
DMBIN_FIRST |
DMBIN_UPPER |
Range marker; The lowest value for a standard bin constant |
DMBIN_LOWER |
2 |
The lower bin. |
DMBIN_MIDDLE |
3 |
The middle bin. |
DMBIN_MANUAL |
4 |
Manual feed (usually a bypass tray). |
DMBIN_ENVELOPE |
5 |
The envelope bin. |
DMBIN_ENVMANUAL |
6 |
Manual envelope feed. |
DMBIN_AUTO |
7 |
Automatic bin selection (let the printer decide). |
DMBIN_TRACTOR |
8 |
Tractor feed (for continuous/dot-matrix paper). |
DMBIN_SMALLFMT |
9 |
Small-format bin. |
DMBIN_LARGEFMT |
10 |
Large-format bin. |
DMBIN_LARGECAPACITY |
11 |
Large-capacity bin (high-volume tray). |
DMBIN_CASSETTE |
14 |
Cassette feed. |
DMBIN_FORMSOURCE |
15 |
Use the bin defined for the specific form/paper size. |
DMBIN_LAST |
DMBIN_FORMSOURCE |
Range marker; The highest value for a standard bin constant |
DMBIN_USER |
256 |
Device specific bins start here |
The values 12 and 13 are undefined and might point to a retired proposal or internal hardware conflict. Setting the dmDefaultSource to this result in unpredicted behaviours (different per printer driver)