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

Free Support Forum - aspose.com

Alternative to Existing Method of Applying License

Hi,



I was wondering if there are other alternate methods of applying the license other than the options mentioned in the below link.





http://www.aspose.com/docs/display/wordsnet/Applying+a+License





Can the license file/details be embedded to the Aspose.Words.dll when I purchase the licensed product instead of hardcoding the license in the application code?





C#

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

license.SetLicense(“Aspose.Words.lic”);





Hope you can advise. Thank you!





Regards,

Cephas

Hi Cephas,

Thanks for your inquiry. No, you cannot embed Aspose license with Aspose.Words dll.

All Aspose products consist of just a single dll. For example, to deploy Aspose.Word you need to copy Aspose.Word.dll.


Aspose licenses are plain text XML files. It can have any name, but
for example, a license for Aspose.Word can be called Aspose.Word.lic.

In your case, I suggest you please use the license file as embedded resource. Please read the detail from here:
http://www.aspose.com/docs/display/wordsnet/Including+the+License+File+as+an+Embedded+Resource

Moreover, please also read following documentation link and let us know if you have any more queries.
http://www.aspose.com/docs/display/wordsnet/When+to+Apply+a+License

Hi Tahir,





Thank you for the clarifications!





Regards,

Cephas