2

I'm try to print PDF without opening in adobereader. File print successfully, but adobereader open as a window. I want to stay close state that window.

this is my code..

ProcessStartInfo info = new ProcessStartInfo(System.Web.HttpContext.Current.Server.MapPath("~/Reports/invPrnt.pdf"));
info.Verb = "Print";
info.CreateNoWindow = true;
info.WindowStyle = ProcessWindowStyle.Hidden;
Process.Start(info);
sgarizvi
  • 16,623
  • 9
  • 64
  • 98
user2710638
  • 115
  • 1
  • 3
  • 15

0 Answers0