Thu Aug 24, 2023 2:43 pm
Thank you for the update, however, deprecation of a method puts those who used it at a disadvantage, replacing the method source with the recommended source would have been a better solution in this case, so that the method in use didn't break. This is the same with with regards to the License method, originally, the License method to set the license, which is also on the License page was as follows:
Spire.License.LicenseProvider.SetLicenseKey(“mykey”);
Spire.License.LicenseProvider.LoadLicense();
This is also deprecated, and no longer exists as a functional way of setting licenses per product line, the new way to do it is based on the product line that is purchased, in our instance we own Spire.PDF and Spire.XLS but do not own Spire.Office or Spire.Doc, as such in all cases we now have to use:
Spire.PDF.License.LicenseProvider.SetLicenseKey(“mykey”);
Spire.PDF.License.LicenseProvider.LoadLicense();
Spire.Xls.License.LicenseProvider.SetLicenseKey(“mykey”);
Spire.Xls.License.LicenseProvider.LoadLicense();
Because the developers removed Spire.License.LicenseProvider, it literally no longer exists and the web documentation on the license section doesn't cover this change, not as of 8/24/23.
A recommendation would be to keep the current methods and have them work with any new recommendations, but not delete them, but create new ones to recommend as a replacement, but not remove what works for users of the libraries.
This is breaking backward compatibility on product lines, and we can't keep up with the loss of no backward compatibility methods.