HOWTO: Set Duplex Printing for Word Automation (230743)
The information in this article applies to:
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Word 2002
- Microsoft Word 2000
- Microsoft Word 97 for Windows
- Microsoft Office XP Developer
- Microsoft Office 2000 Developer
This article was previously published under Q230743 SUMMARY
Microsoft Word for Windows does not provide a method for Automation clients to set the duplex print flag before starting a print job. Although there is a parameter in the PrintOut method that indicates support for duplex printing, the parameter does not provide true duplex printing and may not be available depending on your operating system or installed language. However, developers can work around this limitation on Windows systems by
changing the duplex flag for the active printer driver before calling Word's PrintOut function.
This article demonstrates how to use the Windows API to change the duplex setting of the active printer and allow a Word document to be printed in duplex.
REFERENCES
For more information on problems you might see while trying to print Word documents using a duplex printer, please see the following articles in the Microsoft Knowledge Base: 176189 WD97: Shading of Solid Black or Gray Won't Print Duplex on NT
196857 WD97: First Page Prints on Back of Last Page with Duplex
214683 WD97: Duplex Printing Does Not Duplex with Objects on Page
Modification Type: | Minor | Last Reviewed: | 7/13/2004 |
---|
Keywords: | kbAPI kbAutomation kbhowto kbprint KB230743 |
---|
|