Problem with duplex printing change

May 6, 2013 at 2:09 PM
Good afternoon, I'm trying to modify the DUPLEX parameter value of a document being printed in SIMPLEX from adobe, in the event JobAdded, but can not get the job change SIMPLEX to DUPLEX.

In what way could do this?

Greetings and thanks.
May 6, 2013 at 9:57 PM
You will first need to check you have permission to change any job settings - usually this requires it to be your print job or for you to be running as a user that has PRINTER_ACCESS_ADMINISTER rights.

The duplex property is a member of the DEVMODE structure. It is not currently exposed in the PrintJob class but can easily be done. (See how PrintJob.Color is done for example)
The possible settings are:
' DeviceDuplexSettings is how a duplex device is set for duplex printing
Public Enum DeviceDuplexSettings
    ' DMDUP_SIMPLEX Device is not using double sided printing
    ' DMDUP_VERTICAL Device is performing double sided printing on the short edge
    ' DMDUP_HORIZONTAL Device is performing double sided printing on the long edge
End Enum