Hello,
Thank you for your inquiry.
Please use the following code to load the license keys of Spire.PDF and Spire.XLS in the same project. In addition, kindly note that Spire.PDF and Spire.XLS are two independent products, they can't be used together in a same project due to the incompatible. If you want to use Spire.PDF and Spire.XLS in the same project, please install
Spire.Office through NuGet Manager. If there is any question, please feel free to write back.
- Code: Select all
string xlsLicenseKey = "Spire.XLS license key";
string pdfLicenseKey ="Spire.PDF license key";
Spire.License.LicenseProvider.SetLicenseKey(xlsLicenseKey);
Spire.License.LicenseProvider.LoadLicense();
Spire.License.LicenseProvider.SetLicenseKey(pdfLicenseKey);
Spire.License.LicenseProvider.LoadLicense();
Sincerely,
Annika
E-iceblue support team