Vikash Kumar

Vikash Kumar

  • 1.6k
  • 110
  • 10k

How to print pdf file without opening it in wpf.

Sep 12 2017 2:21 AM
Hello,
I am stuck into print pdf file directly to printer. I am using below code for print. It print but open pdf also. 
 
See the code below:
 
string filePath = "";
ProcessStartInfo info = new ProcessStartInfo(filePath);
info.Verb = "Print";
info.CreateNoWindow = true;
info.WindowStyle = ProcessWindowStyle.Hidden;
Process.Start(info);
 
 
Thanks,
Vikash Kumar 

Answers (4)