The ActiveDocument.PrintOut method does not take an argument for setting duplex vs simplex printing. Accordingly, you would either have to use a different method or pre-configure the printer for duplex printing. Although it's possible to pre-configure the printer for duplex printing through VBA, the commands required for this are specific to the type of printer being used. Alternatively, you could embed a PRINT field with the duplexing command into the document itself. For example, for printing documents to Hewlett-Packard (HP) or HP-compatible printers, a PRINT field coded as {PRINT 27"&l2S"} at the top of a page causes a duplexing printer to begin printing on both sides of the page, using short-edge binding. See Insert|Quick Parts|Field.
PS: When posting code, please use the code tags, indicated by the # button on the posting menu. Without them, your code loses much of whatever structure it had. Inserting asterisks for spacing as you did makes the code impossible to work with.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|