Активация SautinSoft.RtfToHtml


Полный код

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using SautinSoft;

namespace Example
{
    class Program
    {
        static void Main(string[] args)
        {
            Activation();
        }
        /// <summary>
        /// How to activate SautinSoft.RtfToHtml component.
        /// </summary>
        static void Activation()
        {
            // You will get own serial number after purchasing the license.
            // If you will have any questions, email us to [email protected] or ask at online chat https://www.sautinsoft.com.
            // Let us say, you have this key: 1234567890.            

            RtfToHtml.SetLicense("1234567890");
            // Activation of Rtf To Html .Net after purchasing.
 
			RtfToHtml r = new RtfToHtml();

            string inpFile = @"..\..\..\example.docx";
            string outFile = "Result.html";

            r.Convert(inpFile, outFile, new RtfToHtml.HtmlFixedSaveOptions() { Title = "SautinSoft.RtfToHtml Activation" });

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

Download

Imports System
Imports System.Collections.Generic
Imports System.Linq
Imports System.Text
Imports System.IO
Imports SautinSoft

Namespace Example
	Friend Class Program
		Shared Sub Main(ByVal args() As String)
			Activation()
		End Sub
		''' <summary>
		''' How to activate SautinSoft.RtfToHtml component.
		''' </summary>
		Private Shared Sub Activation()
			' You will get own serial number after purchasing the license.
			' If you will have any questions, email us to [email protected] or ask at online chat https://www.sautinsoft.com.

			' Let us say, you have this key: 1234567890.            
			RtfToHtml.SetLicense("1234567890")
			' Activation of Rtf To Html .Net after purchasing.

			Dim r As New RtfToHtml()


			Dim inpFile As String = "..\..\..\example.docx"
			Dim outFile As String = "Result.html"

			r.Convert(inpFile, outFile, new RtfToHtml.HtmlFixedSaveOptions() With {.Title = "SautinSoft.RtfToHtml Activation"})

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

Download


Если вам нужен пример кода или у вас есть вопрос: напишите нам по адресу [email protected] или спросите в онлайн-чате (правый нижний угол этой страницы) или используйте форму ниже:



Вопросы и предложения всегда приветствуются!

Мы разрабатываем компоненты .Net с 2002 года. Мы знаем форматы PDF, DOCX, RTF, HTML, XLSX и Images. Если вам нужна помощь в создании, изменении или преобразовании документов в различных форматах, мы можем вам помочь. Мы напишем для вас любой пример кода абсолютно бесплатно.