Transform.Samples.RtfToText

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


Download the sample here
 

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

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