Samples: Html to Rtf Transform

   Minimize
  HTML to RTF Transform Sample for C# / VB.NET


Download the sample here
 

[C#]
           //create a HtmlToRtfTransform
            using (HtmlToRtfTransform c = new HtmlToRtfTransform())
            {
                 c.Load("SimpleTest.htm"); //load the html file
                 c.Transform("SimpleTest.rtf"));//transform to rtf file
            }

[VB.NET]
           'create a HtmlToRtfTransform
            Dim c As HtmlToRtfTransform  = New HtmlToRtfTransform();
            c.Load("SimpleTest.htm") 'load the html file
            c.Transform("SimpleTest.rtf")) 'transform to rtf file
            c.Dispose()