Set the output format: DOC, RTF, Text ansi or Unicode Text

Namespace:  SautinSoft
Assembly:  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

By default it's set to Rtf.



Examples

CopyHow to convert HTML to Unicode Text file in C#
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");
            }
        }
    }
}
CopyHow to convert HTML to Unicode Text file in VB.Net
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

See Also