string PathToExecutable = @"C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe"; var PrintFileToPrinter = string.Format("/t \"{0}\" \"{1}\"", FilePath, PrinterName); var args = string.Format("{0}", PrintFileToPrinter); Process process = new Process(); process.StartInfo.FileName = PathToExecutable; process.StartInfo.Arguments = args; process.StartInfo.CreateNoWindow = true; process.StartInfo.ErrorDialog = false; process.StartInfo.UseShellExecute = false; process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; process.Start();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)