This content has been marked as final. Show 4 replies
The command line arguments are unsupported but they ARE documented in
the Acrobat Developer FAQ: you don't match that specification. But you
can also expect problems trying to use Adobe Reader from an impersonal
I think you're having problems with the Arguments property => no quotation marks around the expected arguments. here is a piece of code that works on my pc:
System.Diagnostics.Process process = new System.Diagnostics.Process();
process.StartInfo.Arguments = @"/t ""c:\test.pdf""";
process.StartInfo.CreateNoWindow = true;
process.StartInfo.FileName = @"C:\Program Files\Adobe\Reader 8.0\Reader\AcroRd32.exe";
process.StartInfo.UseShellExecute = false;
process.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
hope this helps!
I am having a similar issue in VB2005. It appears that you can only print if the "useshellexecute" is set to true. The only caveat to this is when "useshellexecute" is set to true, you cannot start the process under a different username. Does anyone know a way around this issue?
> Server Agent is running as Local System account.
You'll need to login as Local System, and make sure it has the print driver installed. Most likely it has no printers that it can access.
Reader displays errors in dialogs, so it's likely that you have lots of invisible dialogs with errors on them.
To login as System, use the "at" command:
c:\> at 13:30 /interactive "cmd.exe"
Just use a time a minute or two in the future. When the new command prompt opens, type this in it:
c:\WINNT\System32> start acrord32
Now, you are running Reader as the System user. Load a PDF, and try to print. You will most likely get an error dialog.