Property to activate your copy, doesn't work in trial version, the same as method SetSerial

Namespace:  SautinSoft
Assembly:  PdfMetamorphosis (in PdfMetamorphosis.dll) Version: 7.1.2.14 (7.1.2.14)

Syntax

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

Remarks

Use this property only in full version after purchasing.

Examples

CopyActivate the component after purchasing in C#
using System;
using System.IO;
using System.Collections;

namespace Sample
{
    class Test
    {

        static void Main(string[] args)
        {
            SautinSoft.PdfMetamorphosis p = new SautinSoft.PdfMetamorphosis();
            // To activate the product:
            // 1. Purchase the product at our online store: http://www.sautinsoft.com.
            // 2. You will get the package "pdf_metamorphosis_net_full.zip" and own activation key.
            // 3. Remove the reference from your project to the trial "PdfMetamorphosis.dll".
            // 4. Copy the file PdfMetamorphosis.dll from the package "pdf_metamorphosis_net_full.zip"
            // to your project directory.
            // 5. Add a new reference to the full "PdfMetamorphosis.dll" and set your activation key:            
            p.Serial = "1234567890";
            // Now converts as full version
            string docxPath = @"..\..\..\..\Testing files\example.docx";
            string pdfPath = Path.ChangeExtension(docxPath, ".pdf");
            if (p.DocxToPdfConvertFile(docxPath, pdfPath) == 0)
                    System.Diagnostics.Process.Start(new System.Diagnostics.ProcessStartInfo(pdfPath) { UseShellExecute = true });
        }
    }
}
CopyActivate the component after purchasing in VB.Net
Namespace Sample
    Friend Class Test

        Shared Sub Main(ByVal args() As String)
            Dim p As New SautinSoft.PdfMetamorphosis()
            ' To activate the product:
            ' 1. Purchase the product at our online store: http://www.sautinsoft.com.
            ' 2. You will get the package "pdf_metamorphosis_net_full.zip" and own activation key.
            ' 3. Remove the reference from your project to the trial "PdfMetamorphosis.dll".
            ' 4. Copy the file PdfMetamorphosis.dll from the package "pdf_metamorphosis_net_full.zip"
            ' to your project directory.
            ' 5. Add a new reference to the full "PdfMetamorphosis.dll" and set your activation key:            
            p.Serial = "1234567890"
            ' Now converts as full version
            Dim docxPath As String = "..\..\..\..\Testing files\example.docx"
            Dim pdfPath As String = Path.ChangeExtension(docxPath, ".pdf")
            If p.DocxToPdfConvertFile(docxPath, pdfPath) = 0 Then
                System.Diagnostics.Process.Start(New System.Diagnostics.ProcessStartInfo(pdfPath) With {.UseShellExecute = True})
            Else
                System.Console.WriteLine("Conversion failed!")
                Console.ReadLine()
            End If
        End Sub
    End Class
End Namespace

See Also