Spire.OfficeViewer for .NET as a powerful Office Viewer component, is designed for developers to load Word, Excel, Presentation slides and PDF files and view them from Windows Forms Applications.

Thu Dec 06, 2018 7:38 am

Good day!

I am using asp.net 4.6 MVC, the reference is properly installed and placed.
I have recently requested a trial of Spire.Office. I have downloaded and follow the licensing tutorial but I don't know what I missed.

I tried to place the code(below) inside a function:

Spire.License.LicenseProvider.SetLicenseKey("license.elic.xml");
Spire.License.LicenseProvider.LoadLicense();

I get this error:

The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters.

Question:

1.) How to locate the license.elic.xml? It seems that I wasn't able to find it.
2.) Is the Evaluation watermark will still appear to 1 month trial version Spire.Office provided by ice blue?

tcballelos
 
Posts: 36
Joined: Wed Nov 28, 2018 5:35 am

Thu Dec 06, 2018 8:23 am

Hi,

Thank you for your inquiry.
Kindly note that the parameter key is the value of the "Key" attribute under the element "License" in your license XML file instead of the license file name. It should be a very long string.
The answer to question1: Just open the XML file, you would see the following structure.
<License Key="very very long string">
Then write your code like below.
Code: Select all
Spire.License.LicenseProvider.SetLicenseKey("very very long string");
Spire.License.LicenseProvider.LoadLicense();

The answer to question2: If the license is applied successfully, the warning message should not appear. When the temporary license file expires after 1 month, the warning message would appear again in the result file.
If there's still any doubt, just write back.

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Thu Dec 06, 2018 10:47 am

Good day!

I was able to activate the Spire.

Thank you for the quick response!

tcballelos
 
Posts: 36
Joined: Wed Nov 28, 2018 5:35 am

Fri Dec 07, 2018 2:15 am

Hi,

Thank you for your feedback.
Just feel free to contact us if you need any assistance in the future.

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Return to Spire.OfficeViewer