The DEVMODE structure contains information about the device initialization and environment of a printer. The print driver that is installed for the printer is responsible for returning the DEVMODE structure, which includes the
dwDefaultSource value.
The
dmDefaultSource parameter specifies the default paper source that the printer uses. This parameter is an integer value as defined in wingdi.h. The print driver must return a value that matches one of the values listed in the following table:
+---------------------+----------------+
| Paper Source | Value |
+---------------------+----------------+
| DMBIN_UPPER | 1 |
+---------------------+----------------+
| DMBIN_ONLYONE | 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 |
+---------------------+----------------+
| DMBIN_USER | 256 and higher |
+---------------------+----------------+
For example, the available paper sources for a specific printer and its installed driver may include
Tray 1 as a valid paper source. Because
Tray 1 is not listed as a defined paper source, the print driver must return one of the defined values or a user-defined value. It is not always clear what value a print driver may return for a particular paper source.
The Host Integration Server 2000 print server recognizes the following paper sources after you apply the update:
- DMBIN_UPPER
- DMBIN_LOWER
- DMBIN_MIDDLE
- DMBIN_MANUAL
- DMBIN_ENVELOPE
- DMBIN_FORMSOURCE
REFERENCES
For additional information about print server related Event 25 error messages, click the article numbers below
to view the articles in the Microsoft Knowledge Base:
325925�
FIX: Event 25 Error Message Is Logged When You Create a Print Session by Using Snacfg.exe
327356�
FIX: Event 25 Error Messages Are Logged for Each Print Job in a Print Session
326561�
BUG: Event 25 Error Message Is Logged When You Configure the UNC Printer Name Manually