Free Support Forum - aspose.com

Eval Text Shows - License is Set Correctly

Randomly, when generating a Word document through the API, the evaluation text appears in the resulting Word document. I cannot figure out why this is occuring as the license is set as follows:

Aspose.Word.Document d = new Aspose.Word.Document(ms);

Aspose.Word.License l = new Aspose.Word.License();

l.SetLicense(ConfigurationManager.AppSettings["ASPOSE_LICENSE"]);

d.MailMerge.Execute(GetFieldNames(templatesFields), GetFieldValues(templatesFields));

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

Thanks for your request. You should set a license before performing any operations with documents. So please try setting license before creating document.

Aspose.Word.License l = new Aspose.Word.License();

l.SetLicense(ConfigurationManager.AppSettings["ASPOSE_LICENSE"]);

Aspose.Word.Document d = new Aspose.Word.Document(ms);

d.MailMerge.Execute(GetFieldNames(templatesFields), GetFieldValues(templatesFields));

Please see the following links to learn how and when to apply license.

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

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

Also I see that you are using very old version of Aspose.Words. I would like to advice you to renew your license and use the latest version. There are much more features in the latest Aspose.Words.

Best regards.