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 AhamedPosted Sep 12, 2017, 3:05 AM
info.Verb = "Print";
info.CreateNoWindow = true;
info.WindowStyle = ProcessWindowStyle.Hidden;
Process.Start(info);
Addison ErvisPosted May 1, 2018, 1:52 AM
Maen BadwanPosted Sep 20, 2017, 10:33 AM
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.
Rahul PrasadPosted Sep 12, 2017, 5:40 AM
doc.LoadFromFile("sample.pdf");