Hello friend
I have a problem regarding printing PDF file in my website. Scenario is there is a PDF file existed in folder of virtual directory in IIS. I need to print it at client side on Print button click in browser. Here I my requirement is that PDF file to be downloaded in background & print it without opening the file.
I already have solution but in that PDF is opened & I need to click print option available in PDF file, this option I can't use. As business requirement, file should not be opened & printed automatically.
Please help me for it. Thanks in advance for your support.
Amit Dhania
Loading


Prabhu RajaRank #861 · 2.6K reputationPosted Sep 30, 2011, 3:35 AM EDT
you can do this by using WebBrowser Control in .Net. You can display any files like pdf, word, image, txt files etc by using WebBrowser Control.
I have attached my source here. Download it and run without any change in code.
I have posted a blog regarding this: Hope it will be useful for you.
http://www.c-sharpcorner.com/Blogs/6814/how-to-use-web-browser-control-in-net.aspx
--------------------------------------------------------------
If this helps you, then mark as "Correct Answer"
Thank you
Amit DhaniaRank #3,217 · 446 reputationPosted Sep 30, 2011, 4:44 AM EDT
So I need solution for website not for window application.
aj k3 reputationPosted Dec 4, 2014, 9:32 PM EST
Alex SmithRank #4,089 · 366 reputationPosted Dec 7, 2014, 9:54 PM EST
http://www.codeproject.com/Tips/689325/Send-PDF-files-directly-to-client-printer-without
Veeresh Kumar40 reputationPosted Oct 9, 2019, 8:43 PM EDT