Free Support Forum - aspose.com

Evaluation Copy Check

Hi,

We have a process that converts DOC to PDF using aspose words then emails it out, using our mail client.

We want to program in some extra checks (c#), to check that if aspose is in evaluation copy mode (because the licence has run out, is not valid for some reason, or is missing from the bin directory), that it does not continue sending the email out the email.

We do not want a customer to possibly receive an email attachment PDF that has evaluation copy written across the top.

Is there somewhere that we can validate the licence before continuing?

We currently set the licence by:

Aspose.Words.License license = new Aspose.Words.License();
license.SetLicense(@"Aspose.Words.lic");


This message was posted using Aspose.Live 2 Forum

Hi

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

Thanks for your request. First of all, I think, you should make sure you have applied the license properly an no exceptions is thrown during applying the license. Please see the following link to learn how to apply the license and where to apply the license:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net-and-java/applying-a-license.html

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

If exception is thrown upon applying the license, then you can consider that the license was not applied.

Best regards,