How to print document both side

前端 未结 2 1303
误落风尘
误落风尘 2021-01-14 03:47

I have one command line application which print word document. As per new requirement, whenever application send document for printing, it should print both side.

S

相关标签:
2条回答
  • 2021-01-14 04:14

    Here's a simple piece of code to print with some settings:

    var pd = new PrintDocument
    {
        PrinterSettings =
        {
            Duplex = Duplex.Vertical,
            PrinterName = "YourPrinterName"
        }
    };
    
    if(pd.PrinterSettings.IsValid)
        pd.Print();
    
    0 讨论(0)
  • 2021-01-14 04:22

    http://msdn.microsoft.com/en-us/library/system.drawing.printing.printersettings.aspx

    Perhaps you can use the Duplex-property?

    0 讨论(0)
提交回复
热议问题