Set your activation key.

Namespace:  SautinSoft
Assembly:  SautinSoft.HtmlToRtf (in SautinSoft.HtmlToRtf.dll) Version: 7.1.4.17

Syntax

      
 C#  Visual Basic 
public string Serial { get; set; }
Public Property Serial As String

Examples

CopyProduct Activation using C#
using SautinSoft;
using System.IO;

namespace Sample
{
    class Sample
    {
        static void Main(string[] args)
        {
            // Activation of HTML to RTF .Net.
            HtmlToRtf h = new HtmlToRtf();

            // Place your serial number here.
            // You will get an own serial number after purchasing the license.
            // If have any questions, email us to sales@sautinsoft.com or ask at online chat https://www.sautinsoft.com.
            h.Serial = "1234567890";

            string inputFile = @"..\..\sample.html";
            string outputFile = Path.ChangeExtension(inputFile, ".rtf");

            if (h.OpenHtml(inputFile))
            {
                bool ok = h.ToRtf(outputFile);

                // Open the result for demonstation purposes.
                if (ok)
                    System.Diagnostics.Process.Start(new System.Diagnostics.ProcessStartInfo(outputFile) { UseShellExecute = true });
            }
        }
    }
}
CopyProduct Activation using VB.Net
Imports System
Imports System.IO
Imports System.Text
Imports SautinSoft

Module Module1
    Sub Main()

        ' Activation of HTML to RTF .Net.
        Dim h As New HtmlToRtf()
        ' Place your serial number here.
        ' You will get an own serial number after purchasing the license.
        ' If have any questions, email us to sales@sautinsoft.com or ask at online chat https://www.sautinsoft.com.        
        h.Serial = "1234567890"

        Dim inputFile As String = "..\sample.html"
        Dim outputFile As String = Path.ChangeExtension(inputFile, ".rtf")

        If h.OpenHtml(inputFile) Then
            Dim ok As Boolean = h.ToRtf(outputFile)

            ' Open the result for demonstation purposes.
            If ok Then
                System.Diagnostics.Process.Start(New System.Diagnostics.ProcessStartInfo(outputFile) With {.UseShellExecute = True})
            End If
        End If
    End Sub
End Module

See Also