问题
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
回答1:
http://msdn.microsoft.com/en-us/library/system.drawing.printing.printersettings.aspx
Perhaps you can use the Duplex-property?
回答2:
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();
来源:https://stackoverflow.com/questions/9580032/how-to-print-document-both-side