How to print document both side

前端 未结 2 1304
误落风尘
误落风尘 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();
    

提交回复
热议问题