This project is read-only.

Suppress all dialogs

Sep 2, 2014 at 2:45 PM

I have been using the library with some success to send to device mswinpr2 but have not determined how to successfully suppress all the dialog boxes that appear? I have tried to use -dNODISPLAY which works but then the document does not print to the printer? There is also a setting in a /QueryUser which I have had no success.

Does anyone have any insight on how to do this.
Oct 3, 2014 at 8:59 AM
Dec 4, 2014 at 5:49 PM
Edited Dec 4, 2014 at 5:55 PM
Hi josip,
I'm having the same problem, I have all the parameters and I am capable of printing by bash.
Am I missing anything or is this a bug?

My switches:
      string printerName = "MyPrinter";
      string inputFile = @"C:\my.pdf";

       List<string> switches = new List<string> {  "-empty", 
                                                            @"-sOutputFile=""%printer%" + printerName+@"""",                                                
                                                            "-f", inputFile };
wich is the same i use on bash
gswin32c.exe -dBATCH -dNOPAUSE -dNOPROMPT -dNoCancel -sDEVICE=mswinpr2 -sOutputFile="%printer%MyPrinter" -q -f "C:\my.pdf"
If you need more info please ask.

thanks in advance