Free Support Forum - aspose.com

How to use licence version

Hi Team, My company is going through the process of purchasing a licence and would be in hand in a day or two. I am using evaluation version of Aspose.Cells so far. Can you please let me know what I need to change in my code in order to make the DLL as licenced. Thanks, Subbu

@SubbuatAspose,

Thanks for your query.

It is quite easy to implement license in an application which is developed without license or using temporary license. There is no need to change even a single line of code to use license. Just add following two lines at the beginning of application such that these two lines are executed once only throughout the life span of application and before calling any function/feature of Aspose.Cells DLL.

Aspose.Cells.License lic = new Aspose.Cells.License();
lic.SetLicense(@"Aspose.Cells.NET.lic");

After implementing the license, you may test the license using property WorkBook.IsLicensed as shown below:

Workbook wb = new Workbook();
if(wb.IsLicensed)
{
        //license is implemented
}

@SubbuatAspose,

Furthermore, you may see the document for your complete reference on Licensing:
https://docs.aspose.com/display/cellsnet/Licensing