Gets and sets a DEVMODE structure. Optional - allows you to pass a DEVMODE structure in if you have one. If you do not pass in your own DEVMODE structure, the new one will be created by calling OpenPrinter(), DocumentProperties(), and ClosePrinter().
We never call SetPrinter() and have no facility to offer the features provided by SetPrinter() (e.g., pause/resume, deleting jobs, changing printer status, etc.). DocumentProperties() is called only in the case where the client doesn't provide a DEVMODE.
If you provide your own DEVMODE, you will certainly want to call DocumentProperties() to populate it and/or display the print dialog. |
Read-write property
Long
Default Value: None