how to print .htm files in c#?
===

I cant seem to find a good way to print .htm file in c# using .net 4.0 , visual studio 2010 and **windows forms**. When i tried to print it directly , it printed the raw html data instead of printing the "page" it self.

Only way i know is to use a WebBrowser control but when i print the document, it dont print colors and the page isn't printed correct, edges not drawn and so on.

Code for Web Browser : 

                       public void Print()
        {
            // Create a WebBrowser instance. 
            WebBrowser webBrowserForPrinting = new WebBrowser();

            // Add an event handler that prints the document after it loads.
            webBrowserForPrinting.DocumentCompleted +=
                new WebBrowserDocumentCompletedEventHandler(PrintDocument);

            // Set the Url property to load the document.
            webBrowserForPrinting.Url = new Uri(Core.textLog);
        }

     private void PrintDocument(object sender,
    WebBrowserDocumentCompletedEventArgs e)
        {
            ((WebBrowser)sender).ShowPrintDialog();
            //// Print the document now that it is fully loaded.
            //((WebBrowser)sender).Print();

            //// Dispose the WebBrowser now that the task is complete. 
            ((WebBrowser)sender).Dispose();
        }


What can i do?

Thank you!