Last post Jun 22, 2007 01:33 PM by camerboy
Jun 21, 2007 10:33 PM|camerboy|LINK
Hello Dudes, I have a vb.Net application that calls some Crystal Reports. Before printing, i want to write a function that will make sure that the computer default printer prints in both side (recto verso). I know that there's a Printersetting object
in the framework. But i dont see a method that controls those kinds of properties (landscape, duplex etc...)
Could any gourou help me ?
Jun 21, 2007 10:44 PM|SGWellens|LINK
Are you looking for something like this?
printDoc = new System.Drawing.Printing.PrintDocument();
if (printDoc.PrinterSettings.CanDuplex == true)
printDoc.PrinterSettings.Duplex = System.Drawing.Printing.Duplex.Vertical;
Jun 22, 2007 01:33 PM|camerboy|LINK
That's a good start. In fact what i want it's a function that forces the default printer
installed on the machine to print in both side of the paper. Doing this, the user will not
have to go and change manually those settings.