How to print a document on both sides

I have one command line application that prints a Word document. According to the new requirement, whenever an application submits a document to be printed, it must print both sides.

So my question is, can I set in my C # program any print property that sends a command to the printer to print on both sides rather than manually with the printer.

please advise thanks


source to share

2 answers

Perhaps you can use the Duplex property?



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

var pd = new PrintDocument
    PrinterSettings =
        Duplex = Duplex.Vertical,
        PrinterName = "YourPrinterName"





All Articles