I have been writing a program which prints envelope addresses. I can use the
printer dialog box while the program is running to determine which envelope sizes
are supported on my HP Laserjet 4L. And once I know them, I can use the DEVMODE
structure to call out a supported envelope size. But can anyone tell me how I
can code an enumeration of the supported sizes for any printer?
For example, my HP 4L supports less than half of those that are available. Other
printers might not support that many. I need to know which ones are supported
for any selected printer. I'm sure there is a way to do it, and I hope someone
out there has some ideas. I will appreciate any help offered.
printer dialog box while the program is running to determine which envelope sizes
are supported on my HP Laserjet 4L. And once I know them, I can use the DEVMODE
structure to call out a supported envelope size. But can anyone tell me how I
can code an enumeration of the supported sizes for any printer?
For example, my HP 4L supports less than half of those that are available. Other
printers might not support that many. I need to know which ones are supported
for any selected printer. I'm sure there is a way to do it, and I hope someone
out there has some ideas. I will appreciate any help offered.
Comment