Activation of SautinSoft.Excel.


Полный код

using SautinSoft.Excel;
using System.IO;

namespace Sample
{
    class Sample
    {
        static void Main(string[] args)
        {
			// Before starting, we recommend to get a free key:
            // https://sautinsoft.com/start-for-free/
            
            // Apply the key here:
			// SautinSoft.Excel.ExcelDocument.SetLicense("1234567890");
                  
            // Place your serial(s) number.
            // You will get own serial number(s) after purchasing the license.
            // If you will have any questions, email us to sales@sautinsoft.com or ask at online chat https://www.sautinsoft.com.

            
            string inpFile = @"..\..\..\test.xlsx";
            string outFile = @"..\..\..\Result.docx";

            ExcelDocument excelDocument = ExcelDocument.Load(inpFile);
            excelDocument.Save(outFile, new DocxSaveOptions());

            System.Diagnostics.Process.Start(new System.Diagnostics.ProcessStartInfo(outFile) { UseShellExecute = true });

        }
    }
}

Download

Imports SautinSoft.Excel
Imports System.IO

Namespace Sample
    Class Sample
        Shared Sub Main(ByVal args As String())
            ' Before starting, we recommend to get a free key:
            ' https://sautinsoft.com/start-for-free/
            
            ' Apply the key here:
            ' SautinSoft.Excel.ExcelDocument.SetLicense("1234567890")
                  
            ' Place your serial(s) number.
            ' You will get own serial number(s) after purchasing the license.
            ' If you have any questions, email us to sales@sautinsoft.com or ask at online chat https://www.sautinsoft.com.

            Dim inpFile As String = "..\..\..\test.xlsx"
            Dim outFile As String = "..\..\..\Result.docx"

            Dim excelDocument As ExcelDocument = ExcelDocument.Load(inpFile)
            excelDocument.Save(outFile, New DocxSaveOptions())

            System.Diagnostics.Process.Start(New System.Diagnostics.ProcessStartInfo(outFile) With {.UseShellExecute = True})

        End Sub
    End Class
End Namespace

Download


Если вам нужен пример кода или у вас есть вопрос: напишите нам по адресу support@sautinsoft.ru или спросите в онлайн-чате (правый нижний угол этой страницы) или используйте форму ниже:



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

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