Forums - C# Corner

Forum guidelines
Vikash Kumar

Vikash Kumar

  • 1.8k
  • 48
  • 3.5k

How to print pdf file without opening it in wpf.

Sep 12 2017 2:21 AM
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;
Vikash Kumar 

Answers (4)