Rtf Language
Namespace:
SautinSoftAssembly: SautinSoft.HtmlToRtf (in SautinSoft.HtmlToRtf.dll) Version: 4.6.10.19
Syntax
| C# | Visual Basic |
public HtmlToRtf..::.eRtfLanguage RtfLanguage { get; set; }
Public Property RtfLanguage As HtmlToRtf..::.eRtfLanguage
Remarks
Examples
using System; using System.IO; namespace Sample { class Test { static void Main(string[] args) { //Convert HTML file to Word-RTF file and set language //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"; //Let's set German language as default for this file objH.RtfLanguage = SautinSoft.HtmlToRtf.eRtfLanguage.l_German; //convert HTML file to RTF file int ret = objH.ConvertFile(@"..\..\..\..\..\..\Testing HTMLs\UTF-8 Sampler.htm", @"..\..\..\..\..\..\Testing HTMLs\Word document.rtf"); // 0 - converting successfully // 1 - can't open input file or URL, check the input path // 2 - can't create output file, check the output path // 3 - converting failed if(ret==0 ) { //Show produced RTF file System.Diagnostics.Process.Start(@"..\..\..\..\..\..\Testing HTMLs\Word document.rtf"); } } } }
Imports System Imports System.IO Imports System.Text Module Module1 Sub Main() 'Convert HTML file to Word-RTF file and set language '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"; 'Let's set German language as default for this file objH.RtfLanguage = SautinSoft.HtmlToRtf.eRtfLanguage.l_German 'convert HTML file to RTF file Dim ret As Integer = objH.ConvertFile("..\..\..\..\..\Testing HTMLs\UTF-8 Sampler.htm", "..\..\..\..\..\Testing HTMLs\Word document.rtf") ' 0 - converting successfully ' 1 - can't open input file or URL, check the input path ' 2 - can't create output file, check the output path ' 3 - converting failed If ret = 0 Then 'Show produced RTF file System.Diagnostics.Process.Start("..\..\..\..\..\Testing HTMLs\Word document.rtf") End If End Sub End Module