HTML to RTF .Net - Activation

Activation of HTML to RTF .Net


Complete code.

using SautinSoft;
using System.IO;

namespace Sample
{
    class Sample
    {
        static void Main()
        {
            HtmlToRtf h = new HtmlToRtf();

            // Place your serial number.
            // You will get own serial number after purchasing the license.
            // If you will have any questions, email us at sales@sautinsoft.com or ask at online chat https://www.sautinsoft.com.

            // For example, you have this key: "1234567890".
            h.Serial = "1234567890";

            string inputFile = @"..\..\sample.html";
            string outputFile = @"Result.rtf";

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

                // Open the result for demonstration purposes.
                if (ok)
                    System.Diagnostics.Process.Start(new System.Diagnostics.ProcessStartInfo(outputFile) { UseShellExecute = true });
            }
        }
    }
}

Download.

        
            Imports SautinSoft
Imports System.IO

Namespace Sample
    Friend Class Sample
        Shared Sub Main()
            Dim h As New HtmlToRtf()

            ' Place your serial number.
            ' You will get own serial number after purchasing the license.
            ' If you will have any questions, email us at sales@sautinsoft.com or ask at online chat https://www.sautinsoft.com.

            ' For example, you have this key: "1234567890".
            h.Serial = "1234567890"

            Dim inputFile As String = "..\sample.html"
            Dim outputFile As String = "Result.rtf"

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

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

Download.


If you need a new code example or have a question: email us at support@sautinsoft.com or ask at Online Chat (right-bottom corner of this page) or use the Form below:



Questions and suggestions from you are always welcome!

We are developing .Net components since 2002. We know PDF, DOCX, RTF, HTML, XLSX and Images formats. If you need any assistance with creating, modifying or converting documents in various formats, we can help you. We will write any code example for you absolutely free.