Problem with AcroRd32.exe and C#

  • Thread starter Thread starter tdunham
  • Start date Start date
T

tdunham

Hi, I am trying to print Pdfs from my C# code using AcroRd32.exe /t and passing in a file path\name and a network printer path. When I paste my filename and printer path into Start\Run, everything works just fine, but when I execute the code, AcroRd32 shows up as a process in Task Manager, but nothing happens. Here is my code:

ProcessStartInfo info = new ProcessStartInfo();
info.WorkingDirectory = @"C:\Program Files\Adobe\Acrobat 6.0\Reader\";
info.FileName = @"C:\Program Files\Adobe\Acrobat 6.0\Reader\" + "AcroRd32.exe";
info.Arguments = @"/t ""C:\DOCUME~1\JRS\JRSNET~1\LOCALS~1\Temp\tmp1CA.tmp"" ""\\JRSPRINT\R&D HP2100""
info.CreateNoWindow = true;
info.UseShellExecute = false;

Process process = new Process();
process.EnableRaisingEvents = true;
process.StartInfo = info;
process.Start();

I’ve read every post I can find on using AcroRd32.exe and I don’t see what I’m doing wrong. Any help would be greatly appreciated; I'm out of ideas.


**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
 
Back
Top