title: how to convert html source with all formating into rtf string in asp.net with c#
body: <p>I have creates a html page and want to convert into rtf string. But the all format not show in rtf string.  eg.  tag not showing in the rtf string.
  Kindly help me.</p>
  
  <pre><code> WebBrowser reportWebBrowser = new WebBrowser();
  
                  reportWebBrowser.CreateControl();
                  reportWebBrowser.DocumentText = _url;
                  while (reportWebBrowser.DocumentText != _url)
                  {
                      Application.DoEvents();
                  }
                  reportWebBrowser.Document.ExecCommand("SelectAll", false, null);
                  Application.DoEvents();
                  reportWebBrowser.Document.ExecCommand("Copy", false, null);
                  Application.DoEvents();
                  reportWebBrowser.Document.ExecCommand("Copy", false, null);
                  Application.DoEvents();
  
                  reportWebBrowser.Document.ExecCommand("Copy", false, null);
  
                  Application.DoEvents();
                  RichTextBox reportRichTextBox = new RichTextBox();
                  reportRichTextBox.Paste();
                  String f = System.IO.Path.GetTempFileName();
                  reportRichTextBox.SaveFile(f);
                  html=  System.IO.File.ReadAllText(f) ;
  </code></pre>