Process oProcess = new Process(); try { oProcess.StartInfo.FileName = PDFFilePath; oProcess.StartInfo.UseShellExecute = true; oProcess.StartInfo.CreateNoWindow = true; oProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; oProcess.StartInfo.Verb = "print"; oProcess.Start(); if (oProcess.HasExited == false) { oProcess.WaitForExit(10000); } Success = true; } catch (InvalidOperationException ex) { throw ex; } catch (IOException ex) { throw ex; } catch (Exception ex) { throw ex; } finally { if (oProcess != null) { oProcess = null; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)