Note: Here "FilePath", represent path of document which you want to print.
Liked By
Write Answer
How do I print an HTML document from a web service?
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy
Join MindStick Community
You have need login or register for voting of answers or question.
Dinesh Tummala
12-Dec-2016AVADHESH PATEL
04-Feb-2013Hi Alexander Sabato!
Run this command into command prompt
rundll32.exe %WINDIR%\System32\mshtml.dll,PrintHTML "FilePath"
If you are using C#, than used line of code as below
using (Process printProcess = new Process()) { string systemPath = Environment.GetFolderPath(Environment.SpecialFolder.System); printProcess.StartInfo.FileName = systemPath + @"\rundll32.exe"; printProcess.StartInfo.Arguments = systemPath + @"\mshtml.dll,PrintHTML """ + FilePath + @""""; printProcess.Start(); }Note: Here "FilePath", represent path of document which you want to print.