just tried it and caught it. will send you how to write it.
email me to my email at work as can't see yours anymore.
Let's share it.
I just tried and got to pass my own message to make sure it doesn't crash on the user.
I will probably update it properly tomorrow as this could happen to my colleagues in Europe.
I use C# in Visual Studio but Here is what I did:
code here... and before to call ....go,
a way to release or acquire licenses :
// When in Expedition If license Fablink XE PRO acquired need to be released before to execute.
or in the opposite case :
I hope it helps.
Why not to use Application.IsLicenseAquired(epcbLicenseFeatureFablinkXE)?
Well, there are some drawbacks.
it requires, that you have an application running to check if the license is available.
This is fine, as long as you run your code out of expedition, a then always an application is available.
but if you want for example run the automation code externally and use let`s say the AutomationPro feature to create PDFExports, then there is no need to have an expedition running. But you need to be able to acquire teh FablinkXE and AutomationPro license.
So, it would mean, that I have to start an expedition instance, which takes time , and then execute the license check.
I would rather prefer to have the option to check the license server if a license would be available, if so, run the rest of the automation.
And, in fact, I still need to find a way to check if the Automation Pro licenses are available or not.
you can get usage information from lmutil.exe lmstat
no automation required, no opening expedition, and works for all flex licenses. You can even get just specific feature usage information within a license.
lmutil lmstat -a -c "<license file>" -f xefablink