Set activation key
Namespace:
SautinSoftAssembly: SautinSoft.HtmlToRtf (in SautinSoft.HtmlToRtf.dll) Version: 4.6.10.19
Syntax
Remarks
After purchasing you will get the full version of product and your serial number. This parameter doesn't have any effect in the trial version. This parameter is necessary in full version, please don't forget to specify it by your serial number.


Examples
using System; using System.IO; namespace Sample { class Test { static void Main(string[] args) { //Activate the component after purchasing SautinSoft.HtmlToRtf objH = new SautinSoft.HtmlToRtf(); //Place your serial number here, which you have got after purchasing the component //if have any questions, email us to sales@sautinsoft.com or ask at online chat http://www.sautinsoft.com objH.Serial = "123456789"; //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() 'Activate the component after purchasing Dim objH As New SautinSoft.HtmlToRtf 'Place your serial number here, which you have got after purchasing the component 'if have any questions, email us to sales@sautinsoft.com or ask at online chat http://www.sautinsoft.com objH.Serial = "123456789" '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