3
Answers

How to print pdf file without opening it in wpf.

Vikash Kumar

Vikash Kumar

7y
288
1
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 (3)