We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Setting License

Hi,
We have purchased Aspose Total and are using Aspose Words, Pdf, PdfKit & Barcode in our application.
In one of the methods, I am using all of the above components.
Do I have to set license for each individual application by calling SetLicense() on each component instance?
Is there a way of setting the license in a common place like registry so that I don’t have to set the the license on each instance that I create?

Thanks,
Sudheer

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. You don’t need to set license for each created instance. You are only required to set a license once per application or process. Please see the following link to learn when to apply license:

http://www.aspose.com/documentation/file-format-components/aspose.words-for-.net-and-java/when-to-apply-a-license.html

But you should set license for each Aspose product independently. For example:

//Set Aspose.Words License

Aspose.Words.License awLic = new Aspose.Words.License();

awLic.SetLicense("Aspose.Custom.lic");

//Set Aspose.Pdf license

Aspose.Pdf.License apLic = new Aspose.Pdf.License();

apLic.SetLicense("Aspose.Custom.lic");

Best regards.