Skip navigation
andy.mueller
Currently Being Moderated

Reader 10.0 - programatic printing is not working via command

Aug 24, 2012 11:35 AM

Tags: #reader_x #not_printing

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

  proc.Start()

 

Any idea why the pdfs are not spooling to the printer when executing as a command vs   running the exe with a double-click?  

 

Thanks,

Andy

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points