- Code: Select all
var license = builder.Configuration.GetSection("SpireOffice:License").Value;
Spire.Doc.License.LicenseProvider.SetLicenseKey(license);
Spire.Pdf.License.LicenseProvider.SetLicenseKey(license);
Spire.Pdf.License.LicenseProvider.LoadLicense();
Spire.Xls.License.LicenseProvider.SetLicenseKey(license);
Spire.Xls.License.LicenseProvider.LoadLicense();
I'm using version 9.4.0 of Spire.Office.