Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Fri Sep 01, 2023 6:00 pm

After upgrading Spire.Office to version 8.8.0

Code: Select all
Spire.License.LicenseProvider.SetLicenseKey(...);


produces compiler error:

Error CS0234 The type or namespace name 'LicenseProvider' does not exist in the namespace 'Spire.License' (are you missing an assembly reference?)

Before upgrade it was working.

What is wrong and hoiw to apply licence key?

bbrodnik
 
Posts: 16
Joined: Sat Jan 09, 2021 10:38 am

Mon Sep 04, 2023 3:05 am

Hi,

Thank you for your inquiry.
Recently, we made change for the way of using License key. For the way” Spire.License.LicenseProvider.SetLicenseKey(...)”,our product is no longer in use. For how to apply licesne key , you can refer to the following code, and please kindly note that the “LoadLicense” method must be used except doc products when using multiple individual products in one project.
Code: Select all
 Spire.Pdf.License.LicenseProvider.SetLicenseKey("key")
 Spire.Pdf.License.LicenseProvider.LoadLicense();
 Spire.Xls.License.LicenseProvider.SetLicenseKey("key")
 Spire.Xls.License.LicenseProvider.LoadLicense();

If you have any issue, just feel free to contact us.

Sincerely,
Ula
E-iceblue support team
User avatar

Ula.wang
 
Posts: 282
Joined: Mon Aug 07, 2023 1:38 am

Tue Sep 05, 2023 2:25 pm

It works now, thank you.

bbrodnik
 
Posts: 16
Joined: Sat Jan 09, 2021 10:38 am

Wed Sep 06, 2023 9:21 am

Hi,

Thank you for your feedback.
I hope you have a wonderful day.

Sincerely,
Ula
E-iceblue support team
User avatar

Ula.wang
 
Posts: 282
Joined: Mon Aug 07, 2023 1:38 am

Return to Spire.PDF