.Net assembly to convert Text, DOCX, RTF into HTML format for C# and VB.Net developers.
RTF to HTML using C# Library to convert RTF to HTML within .Net and C#
HTML-to-RTF Pro DLL
HTML Beautifier .Net
HTML to RTF Converter

How to convert RTF file to HTML using C# and .Net platform

  1. Download "SautinSoft.RtfToHtml.dll": Download RTF to HTML .Net
  2. Add a new reference to the "SautinSoft.RtfToHtml.dll":
    Add reference to RTF to HTML .Net
  3. Type the code:
    using System;
    using System.IO;
    using SautinSoft;
    
    namespace Sample
    {
    	class Sample
    	{
    		static void Main(string[] args)
    		{
                RtfToHtml r = new RtfToHtml();
                string rtfFile = @"d:\docs\Sample.rtf";
                string htmlFile = Path.ChangeExtension(rtfFile, ".html");
    
                r.OpenRtf(rtfFile);
                r.OutputFormat = RtfToHtml.eOutputFormat.HTML_5;
                r.ImageStyle.IncludeImageInHtml = true;
                r.ToHtml(htmlFile);
    		}
    	}
    }