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
Login to view the files attached to this post.