Link Search Menu Expand Document

Display License Info - VB.NET

PDF Renderer SDK sample in VB.NET demonstrating ‘Display License Info’

Imports Bytescout.PDFRenderer

Class Program
    Friend Shared Sub Main(args As String())

        ' LicenseInfo can be retrieved by createing instance of any renderer class,
        ' Because all of them are derived from BaseRenderer
        Dim renderer As New RasterRenderer()
        renderer.RegistrationName = "demo"
        renderer.RegistrationKey = "demo"

        ' Get License Info
        Dim licenseInfo = renderer.LicenseInfo

        ' Show Info
        Console.WriteLine("======== License Info =========")
        Console.WriteLine("===============================" & Environment.NewLine)

        Console.WriteLine($"License type: {licenseInfo.LicenseType}")
        Console.WriteLine($"License limit type: {licenseInfo.LimitType}")
        Console.WriteLine($"Limit of license units: {licenseInfo.Limit}")
        Console.WriteLine($"License limit term: {licenseInfo.LimitTerm}")
        Console.WriteLine($"No of remaining license units: {licenseInfo.Remainder}")
        Console.WriteLine($"Update expires On: {licenseInfo.UpdatesExpireOn}")


    End Sub
End Class

Download Source Code (.zip)

Return to the previous page Explore PDF Renderer SDK