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
+3
SeeSharp
source
to share
2 answers
http://msdn.microsoft.com/en-us/library/system.drawing.printing.printersettings.aspx
Perhaps you can use the Duplex property?
+5
ahdaniels
source
to share
Here's a simple piece of code to print with some tweaks:
var pd = new PrintDocument
{
PrinterSettings =
{
Duplex = Duplex.Vertical,
PrinterName = "YourPrinterName"
}
};
if(pd.PrinterSettings.IsValid)
pd.Print();
+4
Abbas
source
to share