Is there an inexpensive library which can convert RTF reports in HTML?!

Sample for VB.Net: How to convert RTF file в HTML and send to email:
By: Yana
 
Oct. 6, 2011 - PRLog -- We’ve Crystal Reports which we are using to convert RTF files into HTML and send to our customers via emails! The matter is that with using this library we get bad-formatted HTMLs!
Because of many complaints from clients, we decide to choose SautinSoft’s RTF to HTML library. Developers from SautinSoft have prepared for us working project for our requirements:

Sample for VB.Net: How to convert RTF file в HTML and send to email:

Dim r As SautinSoft.RtfToHtml = New SautinSoft.RtfToHtml()
       r.OutputFormat = SautinSoft.RtfToHtml.eOutputFormat.XHTML_10
       r.Encoding = SautinSoft.RtfToHtml.eEncoding.UTF_8

       'specify image options
       r.ImageStyle.ImageFolder = "C:\Demo"      'this folder must exist
       r.ImageStyle.ImageSubFolder = "PendingAttachments"   'this folder will be created by the component
       r.ImageStyle.ImageFileName = "image" 'template name for images
       r.ImageStyle.IncludeImageInHtml = False 'false - save images on HDD, true - save images inside HTML

       Dim BaseImage As String = String.Format("{0}/{1}/{2}", r.ImageStyle.ImageFolder, r.ImageStyle.ImageSubFolder,
               r.ImageStyle.ImageFileName)

       Dim htmlString As String = String.Empty
       Dim arListWithImages As New System.Collections.ArrayList()

       htmlString = r.ConvertString(RichTextBox1.Rtf, arListWithImages)

More details about sending HTML emails located here: http://blog.sautinsoft.com/?p=5
End
Source:Yana
Email:***@sautinsoft.com Email Verified
Tags:Rtf To Html, Rtf2html, Rtf Html, Html To Email, C Net, Convert, How
Industry:Software
Location:Votkinsk - Udmurt Republic - Russian Federation
Account Email Address Verified     Account Phone Number Verified     Disclaimer     Report Abuse
Sautinsoft News
Trending
Most Viewed
Daily News



Like PRLog?
9K2K1K
Click to Share