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

Veeresh KumarPosted Oct 10, 2019, 12:43 AM
Alex SmithPosted Dec 8, 2014, 2:54 AM
http://www.codeproject.com/Tips/689325/Send-PDF-files-directly-to-client-printer-without
aj kPosted Dec 5, 2014, 2:32 AM
Amit DhaniaPosted Sep 30, 2011, 8:44 AM
So I need solution for website not for window application.
Prabhu RajaPosted Sep 30, 2011, 7:35 AM
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