How to Print .Html files in C#?

Hi

I have some .html files, which I made display on my web browser control. I need to print the appropriate web page which are displaying on the web browser, and those files are stored in a specified location. Can anyone help me to solve how to print .html files through C#

I need to download .html files from my own websites to my PC directory. ie, From www.mywebsite\Html to "C:\MyFolder". any help

Regards

Ahmed Sahib




Answer this question

How to Print .Html files in C#?

  • Hassan Ayoub

    how to change the size of PrintPreviewDialog, because it appears very small, and how to make it active window because it sometimes hide behind other windows.

    thanks in advance

  • calmal20

    to download files using the webbrowser control, why dont you use the ShowSaveAsDialog() method you could also use say the HttpWebRequest/WebResponse classes to get a the data and save it locally

    http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=933461&SiteID=1

    to print, why dont you use the ShowPrintDialog() method to show the print dialog and print



  • How to Print .Html files in C#?