Duplex printing in .net

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • manofbluz

    #1

    Duplex printing in .net

    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

  • Tian Min Huang

    #2
    RE: Duplex printing in .net

    Hello,

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

    PrinterSettings .CanDuplex Property
    http://msdn.microsoft.com/library/de...us/cpref/html/
    frlrfSystemDraw ingPrintingPrin terSettingsClas sCanDuplexTopic .asp

    PrinterSettings .Duplex Property
    http://msdn.microsoft.com/library/de...us/cpref/html/
    frlrfsystemdraw ingprintingprin tersettingsclas sduplextopic.as p

    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.

    Comment

    • Tian Min Huang

      #3
      RE: Duplex printing in .net

      Hello,

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

      PrinterSettings .CanDuplex Property
      http://msdn.microsoft.com/library/de...us/cpref/html/
      frlrfSystemDraw ingPrintingPrin terSettingsClas sCanDuplexTopic .asp

      PrinterSettings .Duplex Property
      http://msdn.microsoft.com/library/de...us/cpref/html/
      frlrfsystemdraw ingprintingprin tersettingsclas sduplextopic.as p

      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.

      Comment

      • Tian Min Huang

        #4
        RE: Duplex printing in .net

        Hi,

        I would like to follow up on this issue and see if any progress has been
        made. I haven't heard from you in 2 days, were you able to check my reply?
        Should you have any questions, please feel free to post here.
        Looking forward to your reply!

        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.

        Comment

        • Tian Min Huang

          #5
          RE: Duplex printing in .net

          Hello,

          Sorry for the misunderstandin g. 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.

          Comment

          Working...