We have code deployed to a Windows 2003 server that just sorts and prints PDFs that have been created throughout the day.
The program runs and prints successfully when double-clicking the exe and the printed documents spool to the correct printer.
The program appears to run successfully when executing via a command, but the documents do not spool to the printer. The command that launches the exe is the following:
"E:\Applications\MyApp.exe". The program runs, but print doesn't arrive at the printer and we have the correct default printer assigned for the user executing the command.
The code looks like this:
Dim proc As New Process
Dim psi As New ProcessStartInfo
psi.Arguments = "/t " & pdfpath
psi.CreateNoWindow = True
psi.UseShellExecute = False
psi.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden
psi.FileName = "C:\Program Files\Adobe\Reader 10.0\Reader\AcroRd32.exe"
proc.StartInfo = psi
Any idea why the pdfs are not spooling to the printer when executing as a command vs running the exe with a double-click?
Europe, Middle East and Africa