Close AdobeReader after printing file

  • Thread starter Thread starter Close AdobeReader after printing file
  • Start date Start date
C

Close AdobeReader after printing file

Guest
Hello

Any ideas how to close Adobe window after this command.
Or how to kill this process?

Or may be there is the way to skip opening window?
Thanks in advance

My code:




public static bool Print(string pdfFileName, string PrinterName)
{
try
{
Process.Start(
Registry.LocalMachine.OpenSubKey(
@"SOFTWARE\Microsoft\Windows\CurrentVersion" +
@"\App Paths\AcroRd32.exe").GetValue("").ToString(),
string.Format("/h /t \"{0}\" \"{1}\"", pdfFileName, PrinterName));
return true;
}
catch { }
return false;

}

Continue reading...
 
Back
Top