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 Apr 13, 2012 10:20 am

Hi there,

We bought spire.doc a while ago and last week purchased spire.pdf. I now have two license key xml files.

How do I apply both license files to the same project?

fatmedia
 
Posts: 13
Joined: Fri Oct 07, 2011 2:31 pm

Mon Apr 16, 2012 5:55 am

Hi fatmedia,

Sorry for the late reply.

There are steps to use two licenses in one project:

Firstly, please apply one of the licenses (Spire.Doc/Spire.PDF) if you want to operate corresponding kind of document.

Secondly, clear the license which you have applied in the first step by using this code:
Code: Select all
Spire.License.LicenseProvider.ClearLicense();


Thirdly, apply the other license and then operate document.

I also attached a demo illustrates how to apply two licenses to the same project, please have a look.

PS: I applied the license through code Spire.License.LicenseProvider.SetLicenseKey("license key"). The license key is the Key attribute of the license file. If you want to apply the license as embedded resource, you need to rename one of the licenses file at least and then use the code:
Code: Select all
 Spire.License.LicenseProvider.SetLicenseFileName(licenseFilename);

to apply it.

In case of any ambiguity, please feel free to contact us at any time.

Have a nice day.

With best regards.
Suvi
e-iceblue support
User avatar

Suvi.Wu
 
Posts: 154
Joined: Thu Oct 20, 2011 2:53 am

Mon Apr 16, 2012 2:24 pm

thank you for the example code, worked great!

fatmedia
 
Posts: 13
Joined: Fri Oct 07, 2011 2:31 pm

Thu Jun 28, 2012 3:47 am

Please feel free to contact us for anything at any time. Have a great day!
e-iceblue support
User avatar

iceblue support
 
Posts: 240
Joined: Tue Dec 21, 2010 2:56 am

Return to Spire.PDF