Samples: Html to Text

   Minimize
  HTML To TEXT Transform Sample for C# / VB.NET


Download the sample here
 

[C#]

            using (HtmlToTextTransform c = new HtmlToTextTransform ())
            {
                 c.Load("SimpleTest.htm"); 
                 c.Transform("SimpleTest.txt"));
            }

[VB.NET]

            Dim c As HtmlToTextTransform = New HtmlToTextTransform ();
            c.Load("SimpleTest.htm") 
            c.Transform("SimpleTest.txt")) 
            c.Dispose()