Set license in code

Hello,

I bought the license for Cells, how can I set it in codes, Thannks.


This message was posted using Aspose.Live 2 Forum

Hi,

Thanks for your interest in Aspose.

Please follow these steps.

Make some folder on some drive say: c:\myfolder

Place license file there and then modify your code like this

Note: Suppose your license file name is Aspose.Total.lic so the full path to your license will be c:\myfolder\Aspose.Total.lic

[C#]

string
yourLicenseFilePath=@“c:\myfolder\Aspose.Total.lic”;


Aspose.Cells.License cellsLicense = new Aspose.Cells.License();

cellsLicense.SetLicense(yourLicenseFilePath);

For more information, please see the document: Licensing