Free Support Forum - aspose.com

How to use license for 3.6.2.0

We ar using aspose.pdf.dll having version 2.2.1.0 and now we have upgraded to version aspose.pdf.dll 3.6.2.0.We got the license for the new version of dll but the licesnse now does not support products like aspose.excel and aspose.word instead it supports products like aspose.words and aspose.cells,but the dll doesnt have namespace for aspose.words nor aspose.cells and has the namespace for aspse.word and aspose.excel for which but license is not supported,So can you tell us how to use the license

Our current code to set the license is as follows.This code works for 2.2.1.0 with our old license but doesnt work for 3.6.2.0 with the new purchased license.

' set license
Dim licenseFile As String = ConfigurationSettings.AppSettings("AsposeLicenseFile")
If (Not licenseFile Is Nothing) AndAlso (Not String.Empty.Equals(licenseFile)) Then
If Not Me.HttpContext Is Nothing Then
' called from webui; map virtual path to physical path
licenseFile = Me.HttpContext.Server.MapPath(Me.HttpContext.Request.ApplicationPath & licenseFile)
End If

Dim asposeWordLicense As New Aspose.Word.License
asposeWordLicense.SetLicense(licenseFile)

Dim asposePdfLicense As New Aspose.Pdf.License
asposePdfLicense.SetLicense(licenseFile)

'Added by Arvind for EXCEL
Dim asposeExcelLicense As New Aspose.Excel.License
asposeExcelLicense.SetLicense(licenseFile)
'End
End If

Thanks & Regards,

Vijeta Sabale

Hi,

Please refer to the following code:

Dim license As Aspose.Words.License = New Aspose.Words.License
license.SetLicense("D:\CSharp\Test\License\Aspose.Custom.lic")

Dim license1 As Aspose.Pdf.License = New Aspose.Pdf.License

license1.SetLicense("D:\CSharp\Test\License\Aspose.Custom.lic")