hi
can any one help me
how to give direct print from pdf to printer using c# with out preview.
Pdf to direct print
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Farhan ShariffRank #2,004 · 725 reputationPosted Jun 6, 2014, 12:28 AM EDT
{
ProcessStartInfo info = new ProcessStartInfo();
info.Verb = "print";
info.FileName = @"C:\pdf.pdf";
info.CreateNoWindow = true;
info.WindowStyle = ProcessWindowStyle.Hidden;
Process p = new Process();
p.StartInfo = info;
p.Start();
p.WaitForInputIdle();
System.Threading.Thread.Sleep(3000);
if (false == p.CloseMainWindow())
p.Kill();
}
Ravi KumarRank #2,085 · 690 reputationPosted Jun 6, 2014, 3:03 AM EDT
this code is working fine.but when we host in iis it is not working.
how to open pdf from adobe read using java script