I have an app written in asp.net. I need it to print several pdf's with no user interaction. I need to be able to select the printer as well. I have tried shelling adobe reader but there is a permissions issue I cant seem to get around. This works when I run it locally but not when I deploy it to a web server. Does anyone know of a way to do this. Here is the code I have:
Dim oProcSI As New System.Diagnostics.ProcessStartInfo("C:\Program Files\Adobe\Acrobat 4.0\Reader\AcroRd32.exe")
oProcSI.Arguments = "/t """ & PDFLocation & """ """ & DefaultPrinter & """"
oProcSI.CreateNoWindow = True
oProcSI.RedirectStandardOutput = True
oProcSI.UseShellExecute = False
Dim oProc As New System.Diagnostics.Process
oProc.StartInfo = oProcSI
oProc.Start()
Dim oProcSI As New System.Diagnostics.ProcessStartInfo("C:\Program Files\Adobe\Acrobat 4.0\Reader\AcroRd32.exe")
oProcSI.Arguments = "/t """ & PDFLocation & """ """ & DefaultPrinter & """"
oProcSI.CreateNoWindow = True
oProcSI.RedirectStandardOutput = True
oProcSI.UseShellExecute = False
Dim oProc As New System.Diagnostics.Process
oProc.StartInfo = oProcSI
oProc.Start()