I am trying to allow users to print a list of documents that can be of several types, including pdf, in an application written in C#. When the files have a pdf extension, I use the /t command line for AcroRd32.exe to print.
string strExecutable = @"C:\Program Files (x86)\Adobe\Reader 10.0\Reader\AcroRd32.exe";
string strArguments = "/t \"" + strFileAddress + "\" \"" + printer + "\"";
Process procPDF = new Process();
ProcessStartInfo startInfo = new ProcessStartInfo(strExecutable, strArguments);
startInfo.WindowStyle = ProcessWindowStyle.Hidden;
procPDF.StartInfo = startInfo;
procPDF.Start();
Thread.Sleep(1000);
procPDF.WaitForExit(1000);
procPDF.Close();
However, this is giving me two problems:
So, my two questions are
Thanks!
North America
Europe, Middle East and Africa
Asia Pacific