Posted 10 February 2025, 12:34 pm EST
We are unable to get the ExcelIO license to work with Angular 17
We tried using the
(ExcelIO as any)lLicenseKey = ‘key’
(ExcelIO)lLicenseKey = ‘key’
And neither one of those worked. They wouldnt compile.
We found an article recommending the updateExcelIOLicenseKey (obj, license) method approach.
See below.
That compiled, but we still get the Excel IO license not found when we export a file.
Any suggestions?
function updateExcelIOLicenseKey(obj, license) {
obj.LicenseKey = license;
}
function initializeLicenses(): Promise {
GC.Spread.Sheets.LicenseKey = ‘actualkey’;
updateExcelIOLicenseKey(ExcelIO, ‘actualkey’);
// spreadExcel.LicenseKey = ‘actualkey’;
// (ExcelIO as any).LicenseKey = ‘actualkey’;
// (ExcelIO).LicenseKey = ‘actualkey’;
}