Modify document with C#, VB.NET, ASP.NET from Sautin Software company
google+ facebook twitter youtube    

 

 

The RTF-to-HTML .Net is library to convert Text, RTF DOCX documents to HTML 3.2, 4.01, HTML5 with CSS and XHTML using C# and VB.Net


   download free trial Download, vers.: 6.2.9.4 (Sep. 2017)                         Purchase


Key Features

greenbar

Multiple File Formats
The RTF to HTML .Net is .Net library with wide abilities of exporting any RTF (rich text format) and Text document to HTML, XHTML with and without CSS.

greenbar Standalone .NET Solution
The component is 100% created in managed C# and absolutely standalone. It doesn't require MS Office or any other word-processor.
 
greenbar Fast Performance
Full text formatting (font face, color, size, bold, italic, underline, double underline, strike, superscript, subscript). Images in JPG, PNG, GIF, BMP formats. Tables (borders, background, nested tables, merged cells, nested tables).
greenbar Affordable Pricing
The one time price; license will never expires. As bonus, I get unlimited technical support during a whole life for free and independently of the date of my purchasing.
 
 
 

All our .NET Components:

PDF Focus .Net

SDK to convert PDF documents into Word, Excel, HTML, TXT, JPEG, PNG, GIF, TIFF, WMF, Multipage TIFF in C#, VB.Net, ASP.Net.
Price from $399(US)

PDF Metamorphosis .NET

Standalone .Net assembly to convert HTML, Word, RTF, and plain Text files into PDF in C#, VB.Net, ASP.Net. The component was created with pure C#.
Price from $239(US)

Document .Net

is a comprehensive software development tools for .NET developers and generates new document on fly and fill it by necessary data. You can modify paragraph formatting, text, tables and other elements in existing document.
Price from $330(US)

HTML to RTF .Net

Completely a standalone component to convert HTML files to Word, RTF, Text in C#, VB.Net, J#, ColdFusion. Merge RTF files.
Price from $239(US)

PDF Vision .Net

The component to convert images or Websites (HTML) to PDF format. It supports BMP to PDF, JPG to PDF, GIF to PDF and WMF, EMF, ICO, and PNG.
Price from $150(US)

Excel to PDF .Net

Excel to PDF .Net is a standalone component which allows any .Net application get professional export of Excel spreadsheets to PDF, Word, RTF documents.
Price from $239(US)

Below we shall show code samples how to use RTF-to-HTML DLL .Net in C# and VB .Net

  • How to convert RTF to HTML in C#
  • How to convert RTF to HTML in VB.Net
At the the first sample, you need only two lines to convert RTF to HTML in C#:
SautinSoft.RtfToHtml r = new SautinSoft.RtfToHtml();
r.ConvertFile(@"d:\test.rtf", @"d:\test.html");

 

This sample demonstrates how to convert RTF string to HTML string in C# (C Sharp), it usefull when you don't want to create physical files and work only with memory:

SautinSoft.RtfToHtml r = new SautinSoft.RtfToHtml();
string rtf = @"{\rtf {\b bold text {\i bold + italic}} and plan text}";
string html = r.ConvertString(rtf);

 

The component has a lot of properties, for example when you want to export RTF into HTML with images you may save all images as physical files in a single folder or save images inside HTML document.

C# sample how to force the dll store images in folder 'd:\my webs\images':

P.S. the folder 'd:\my webs' must exist, subfolder 'images' will be created by component.

SautinSoft.RtfToHtml r = new SautinSoft.RtfToHtml();
r.ImageStyle.ImageFolder = @"d:\my webs";
r.ImageStyle.ImageSubFolder = "images";
r.ImageStyle.IncludeImageInHtml = false;		  
r.ConvertFile(@"d:\test.rtf", @"d:\test.html");

 

This is a C# sample how to force the dll store images inside HTML document. It's usefull when you want to make RTF converting in memory without creating any files on HDD. Images will be saved inside HTML using base64 algorithm:

SautinSoft.RtfToHtml r = new SautinSoft.RtfToHtml();
r.ImageStyle.IncludeImageInHtml = true;		  
string html = r.ConvertFileToString(@"d:\test.rtf");

This is a first sample how to convert RTF file to HTML file in VB.Net , you will need only two lines of code:

Dim r As New SautinSoft.RtfToHtml()
r.ConvertFile("d:\test.rtf", "d:\test.html")

 

This sample demonstrates how to convert RTF string to HTML string in VB.Net (Visual Basic), it usefull when you don't want to create physical files and work only with memory:

Dim r As New SautinSoft.RtfToHtml()
Dim rtf As String = "{\rtf {\b bold text {\i bold + italic}} and plan text}"
Dim html As String = r.ConvertString(rtf)

 

The component has a lot of properties, for example when you want to export RTF into HTML with images you may save all images as physical files in a single folder or save images inside HTML document.

VB.Net sample how to force the dll store images in folder 'd:\my webs\images':

P.S. the folder 'd:\my webs' must exist, subfolder 'images' will be created by component.

Dim r As New SautinSoft.RtfToHtml()
r.ImageStyle.ImageFolder = "d:\my webs"
r.ImageStyle.ImageSubFolder = "images"
r.ImageStyle.IncludeImageInHtml = False
r.ConvertFile("d:\test.rtf", "d:\test.html")

 

This is a VB.Net sample how to force the dll store images inside HTML document. It's usefull when you want to make RTF converting in memory without creating any files on HDD. Images will be saved inside HTML using base64 algorithm:

Dim r As New SautinSoft.RtfToHtml()
r.ImageStyle.IncludeImageInHtml = True
Dim html As String = r.ConvertFileToString("d:\test.rtf")
components for devolopers
HOME
Since 2002, Sautin Software has been developing and marketing .Net libraries that make it simple to process PDF, HTML and RTF files
I  Validator
Copyright © 2002 - 2018 Sautin Software. All rights reserved support@sautin.com