if (Directory.Exists(strRptPath)) { DirectoryInfo dI = new DirectoryInfo(strRptPath); FileInfo[] rgFiles = dI.GetFiles("*.doc"); foreach (FileInfo fi in rgFiles) { Process MyProcess = new Process(); MyProcess.StartInfo.CreateNoWindow = false; MyProcess.StartInfo.Verb = "print"; MyProcess.StartInfo.FileName = dI.FullName + "\\" + fi.Name; MyProcess.Start(); MyProcess.WaitForExit(10000); MyProcess.Close(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)