EDIT: My fault! I expected the changes to be written back to the default printer settings when in fact only the local instance of the PrinterSettings are changed. -
DEVMODE structure before allocating it?DEVMODE buffer with the default settings after you have allocated it?DM_IN_BUFFER and DM_OUT_BUFFER flags (in addition to DM_IN_PROMPT) in the fMode parameter to DocumentProperties?pDevModeInput and pDevModeOutput to the DEVMODE buffer you initialized at application startup?dmFields bits in the DEVMODE buffer properly set prior to your calling DocumentProperties(... DM_IN_PROMPT ...)DEVMODE buffer in between calls to DocumentProperties(... DM_IN_PROMPT ...)?See: