Set the output format: DOC, RTF, Text ansi or Unicode Text
Namespace:
SautinSoftAssembly: SautinSoft.HtmlToRtf (in SautinSoft.HtmlToRtf.dll) Version: 4.6.10.19
Syntax
| C# | Visual Basic |
public HtmlToRtf..::.eOutputFormat OutputFormat { get; set; }
Public Property OutputFormat As HtmlToRtf..::.eOutputFormat
Remarks
Examples
using System; using System.IO; namespace Sample { class Test { static void Main(string[] args) { //Convert HTML to Unicode Text file //If you need more information about HTML-to-RTF Pro DLL .Net email us at: //support[at]sautinsoft.com SautinSoft.HtmlToRtf objH = new SautinSoft.HtmlToRtf(); //objH.Serial = "XXXXXXXXXXXXXXX"; //set output format as Unicode text objH.OutputFormat=SautinSoft.HtmlToRtf.eOutputFormat.TextUnicode; int ret = objH.ConvertFile(@"..\..\..\..\..\..\Testing HTMLs\UTF-8 Sampler.htm", @"..\..\..\..\..\..\Testing HTMLs\Unicode text.txt"); if(ret==0 ) { System.Diagnostics.Process.Start(@"..\..\..\..\..\..\Testing HTMLs\Unicode text.txt"); } } } }
Imports System Imports System.IO Imports System.Text Module Module1 Sub Main() 'Convert HTML to Unicode Text file 'If you need more information about HTML-to-RTF Pro DLL .Net email us at: 'support[at]sautinsoft.com Dim objH As New SautinSoft.HtmlToRtf 'objH.Serial = "XXXXXXXXXXXXXXX"; 'set output format as Unicode text objH.OutputFormat = SautinSoft.HtmlToRtf.eOutputFormat.TextUnicode Dim ret As Integer = objH.ConvertFile("..\..\..\..\..\Testing HTMLs\UTF-8 Sampler.htm", "..\..\..\..\..\Testing HTMLs\Unicode text.txt") If ret = 0 Then System.Diagnostics.Process.Start("..\..\..\..\..\Testing HTMLs\Unicode text.txt") End If End Sub End Module
