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


Zakir AhamedRank #1,545 · 1K reputationPosted Sep 11, 2017, 11:05 PM EDT
info.Verb = "Print";
info.CreateNoWindow = true;
info.WindowStyle = ProcessWindowStyle.Hidden;
Process.Start(info);
Rahul PrasadRank #2,557 · 546 reputationPosted Sep 12, 2017, 1:40 AM EDT
Maen BadwanRank #2,520 · 556 reputationPosted Sep 20, 2017, 6:33 AM EDT
However, since the PDF format is not natively supported by .NET or WPF classes, you will need to use a programming library (like LEADTOOLS) that supports rasterizing PDF documents.
Addison Ervis10 reputationPosted Apr 30, 2018, 9:52 PM EDT