locked
How do I force the printer to print in grayscale mode from C#? RRS feed

  • Question

  •  

    Plz tell me how do I force the printer to print in grayscale mode from C#?
    (Here I don't want the user to see the print setup dialog box)

     

    Have a nice day!
    Faysal

     

     

    Friday, April 25, 2008 7:55 AM

Answers

  • Hey, try out setting ps.DefaultPageSettings.Color = false

     

     

    Code Snippet

     

    PrinterSettings ps = new PrinterSettings();

    ps.DefaultPageSettings.Color = false;

     

     

    Monday, April 28, 2008 10:29 AM