Duplex printing in .net

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have two complex Word templates that also contain some Bookmarks for receiving database data dynamically. I'm using Word automation code within VB.NET to manipulate the template. I don't need to save the document - I simply open the template, write data to the bookmarks, then call PrintOut

However, one template is a two-sided document. I need to know how to change the printer settings to duplex prior to the PrintOut call in the one case, then back to one-sided in the other case
 
Hello,

Thanks for your post. Please take a look at
System.Drawing.Printing.PrinterSettings which provides CanDuplex and Duplex
properties to determin and set the Printer for double-sided printing.

PrinterSettings.CanDuplex Property
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfSystemDrawingPrintingPrinterSettingsClassCanDuplexTopic.asp

PrinterSettings.Duplex Property
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfsystemdrawingprintingprintersettingsclassduplextopic.asp

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Hello,

Sorry for the misunderstanding. Unfortunately, there is not a direct
command that you can issue that causes a document to print duplex when
automating Word. To work around the problem, please check the KB article
and see if it helps:

HOWTO: Make Word Print Duplex Using OLE Automation
http://support.microsoft.com/?id=194306

I look forward to your response.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top