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.
So my question is, can I set in my C# program any printing property which send command to printer for print both side instead of doing manual with printer.
please advice thanks
http://msdn.microsoft.com/en-us/library/system.drawing.printing.printersettings.aspx
Perhaps you can use the Duplex-property?
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();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With