How to Print .Html files in C#?  
Author Message
M.N. Ahmed Sahib





PostPosted: Visual C# General, How to Print .Html files in C#? Top

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




Visual C#16  
 
 
ahmedilyas





PostPosted: Visual C# General, How to Print .Html files in C#? Top

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



 
 
heretyk





PostPosted: Visual C# General, How to Print .Html files in C#? Top

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