I currently am coding a PDF printer for work that is unattended on a server. Basically, we have a PDF file already created... and we are telling ghostscript to Print the document to the printer passed in.
However, the Ghostscript DLL always pops up a dialog showing what it's doing... such as ... Printing page 1... etc....
I want to have complete silent printing. I've tried -dQUIET ... but that has no affect.
Dim switches As List(Of String) = New List(Of String)
With switches
.Add("-dPrinted")
.Add("-dBATCH")
.Add("-dNOPAUSE")
.Add("-dNOPROMPT")
.Add("-dNOPAGEPROMPT")
.Add("-dNOSAFER")
.Add("-dNumCopies=1")
.Add("-sDEVICE=mswinpr2")
.Add("-sOutputFile=%printer%" + strPrinterName)
If Me.Orientation = PrinterOrientation.vbPRORLandscape Then
.Add("-c")
.Add("<</Orientation 3>> setpagedevice")
End If
.Add("-f")
.Add(fileName)
End With
Is there another switch that I'm missing? Or is it not possible to have 0 popup showing the status?