Spire.XLS is a professional Excel API that enables developers to create, manage, manipulate, convert and print Excel worksheets. Get free and professional technical support for Spire.XLS for .NET, Java, Android, C++, Python.

Fri Oct 04, 2024 5:29 am

This is my code
Code: Select all
Spire.License.LicenseProvider.SetLicenseFileName(Path.Combine(AppContext.BaseDirectory, "Files", "license.elic.xml"));
which I used for dot net 6 and spire.office v 4.9.0.
Now I upgrade my dot net version to 8 and spire.office v9.9.0.

But this code does not support.

Please give me suggestion how can I use Spire.Office v9.9.0 in dot net 8

uzzalprasad
 
Posts: 1
Joined: Fri Oct 04, 2024 5:19 am

Fri Oct 04, 2024 7:53 am

Hello,

Thanks for your inquiry.
Kindly note that we have adjusted the way to apply the license in the latest version. In the new version, you need to apply a separate license for each product. If you purchased Spire.Office, you can use the same certificate or license key as a parameter. Please use the following code to apply license.
Code: Select all
Spire.Doc.License.LicenseProvider.SetLicenseKey("your license key");
Spire.Doc.License.LicenseProvider.LoadLicense();
Spire.Xls.License.LicenseProvider.SetLicenseKey("your license key"); 
Spire.Xls.License.LicenseProvider.LoadLicense();
Spire.Pdf.License.LicenseProvider.SetLicenseKey("your license key"); 
Spire.Pdf.License.LicenseProvider.LoadLicense();
Spire.Presentation.License.LicenseProvider.SetLicenseKey("your license key"); 
Spire.Presentation.License.LicenseProvider.LoadLicense();

Or
Code: Select all
Spire.Doc.License.LicenseProvider.SetLicenseFileName("license.elic.xml"); 
Spire.License.LicenseProvider.LoadLicense();
Spire.Xls.License.LicenseProvider.SetLicenseFileName("license.elic.xml");
Spire.Xls.License.LicenseProvider.LoadLicense();


Sincerely,
William
E-iceblue support team
User avatar

William.Zhang
 
Posts: 454
Joined: Mon Dec 27, 2021 2:23 am

Return to Spire.XLS