I'm using the GhostScript.NET.Processor dll to send a pdf to print from a web service. The code I'm trying to execute is:
ThreadPool.QueueUserWorkItem(Sub()
Dim inputFile As String = "C:\WebServiceLog\checklist.pdf"
Dim printerName As String = "MIAUMIAUMIAU"
Using processor As New GhostscriptProcessor()
Dim switches As New List(Of String)()
switches.Add("-empty")
switches.Add("-dPrinted")
switches.Add("-dBATCH")
switches.Add("-dNOPAUSE")
switches.Add("-dNOSAFER")
switches.Add("-dDuplex")
switches.Add("-dTumble=0")
switches.Add("-dNumCopies=1")
switches.Add("-sDEVICE=mswinpr2")
switches.Add(Convert.ToString("-sOutputFile=%printer%") & printerName)
switches.Add("-f")
switches.Add(inputFile)
processor.StartProcessing(switches.ToArray(), Nothing)
End Using
End Sub)
The error that I keep getting is
An error occured when call to 'gsapi_new_instance' is made: -100
I am running 64bit. Any help on this issue would be greatly appreciated.