How license file work in my code ?pls explain

Hi

I am use Aspose .Total package,but this one related to Cells so directly here i post question
Below is my code and it work also.

My question how license file process in cells,

First i include license file to Cells Api using config file(Aspose.Total.lic)
Dim cellLicense As Aspose.Cells.License = New Aspose.Cells.License()
cellLicense.SetLicense(ConfigurationManager.AppSettings(“AsposeLic”))

Here i convert excel(xls or xlsx to pdf) to pdf format,this work,but below code i am not refer the cellLicense object to converting code,so how process ?

Dim workbook As New Workbook(inputfile)
workbook.Save(outputfile, Aspose.Cells.SaveFormat.Pdf)

Note:
inputfile is D:\doc\time.xls
outputfile is D:\doc\time.pdf and
AsposeLic in web.config is D:\doc\Aspose.Total.lic

Pls reply asap

Regards
Aravind

Hi Aravind,

Thanks for your posting and using Aspose.Cells.

If you do not set license, then Aspose.Cells dll will work in Evaluation Mode, but if you set the license, then the following code

Dim cellLicense As Aspose.Cells.License = New Aspose.Cells.License()
cellLicense.SetLicense(ConfigurationManager.AppSettings(“AsposeLic”))

will make the Aspose.Cells dll to work in Licensed Mode.

You do not need to execute the above code over and over again, you just need to execute it only once so that Aspose.Cells dll could switch from Evaluation Mode to Licensed Mode.


Hi
Thank u for reply

Regards
Aravind