Property to activate your copy, doesn't work in trial version

Namespace:  SautinSoft
Assembly:  SautinSoft.PdfVision (in SautinSoft.PdfVision.dll) Version: 5.0.11.22

Syntax

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

Remarks



Examples

CopyHow to activate the component after purchasing in C#
using System;
using System.IO;

namespace Sample
{
    class Test
    {

        static void Main(string[] args)
        {
            // Activate the component after purchasing
            SautinSoft.PdfVision v = new SautinSoft.PdfVision();

            // Place your activation key here. You can find your "Activation Key" in email with your order.
            // If you have any questions, email us to sales@sautinsoft.com or ask at online chat http://www.sautinsoft.com.

            // For example:
            v.Serial = "1234567890";

            string imageFile = Path.GetFullPath(@"..\..\..\..\..\Testing Files\image4.jpg");
            string pdfFile = Path.ChangeExtension(imageFile, ".pdf");

            int ret = v.ConvertImageFileToPDFFile(imageFile, pdfFile);

            if (ret == 0)
            {
                // Open produced PDF in the default PDF Reader.
                System.Diagnostics.Process.Start(pdfFile);
            }
        }
    }
}
CopyHow to activate the component after purchasing in VB.Net
Imports System.IO

Namespace Sample
    Friend Class Test

        Shared Sub Main(ByVal args() As String)
            ' Activate the component after purchasing
            Dim v As New SautinSoft.PdfVision()

            ' Place your activation key here. You can find your "Activation Key" in email with your order.
            ' If you have any questions, email us to sales@sautinsoft.com or ask at online chat http://www.sautinsoft.com.


            ' For example:
            v.Serial = "1234567890"

            Dim imageFile As String = Path.GetFullPath("..\..\..\..\..\Testing Files\image4.jpg")
            Dim pdfFile As String = Path.ChangeExtension(imageFile, ".pdf")

            Dim ret As Integer = v.ConvertImageFileToPDFFile(imageFile, pdfFile)

            If ret = 0 Then
                ' Open produced PDF in the default PDF Reader.
                System.Diagnostics.Process.Start(pdfFile)
            End If

        End Sub
    End Class
End Namespace

See Also