Posted by a ceTe Software moderator
Hello,
You can detect whether a give license key is valid (for the server it is created) by adding the license in code as show below.
bool validLicense = Document.AddLicense("License Key Here");
In case you have multiple license keys for multiple servers in a load balancing environment where you are not sure which server will execute your code, you can call the AddLicense() method for all license keys and make sure at least one of the AddLicense() calls return true.
A scenario where it is not possible to detect the watermark ahead of time is if you use features or classes in your code that are not available in your licensed edition (for example, using enterprise features with a professional license).
Thanks,
ceTe Software Support Team.