Determining if the License is loaded successfully
Contents
[
Hide
]
Aspose.Cells provides Workbook.IsLicensed property which you can use to determine if the license is loaded successfully or not. If you access this property before setting the license, it will return false and if you will call this property after setting the license, it will return true indicating that license has been loaded successfully.
C# code to determine if the License is loaded successfully
The following code accesses the Workbook.IsLicensed property before setting a license and it returns false. Then it loads the license and accesses the property again which now returns true.
Console Output
Here is the console (debug) output of the above sample code
False
True