When to call SetLicenseKey using PDF Creator control

This is a read only forum. It contains the most frequently asked questions about Amyuni products and licensing.
Post Reply
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

When to call SetLicenseKey using PDF Creator control

Post by Joan » Thu Apr 03 2008

[b]Q - When using the PDF Creator control when shall I call SetLicenseKey()?[/b]

[b]A[/b] - SetLicenseKey() should be called once when instantiating the control, It should be called once for each instance of PDFCreactiveX control. SetLicenseKey is remains active as long as the control is active and is not needed for every document.

If you are in a multithreading environment you still need to call SetLicenseKey() once for each instance of PDFCreactiveX no matter in which thread it is used. However if you are in a multithreading environment it is strongly advisable that all calls on the control or reference be made from the same thread that created the control

Post Reply