Hello:
I’m using the Aspose.Words product and can generate a dynamic Word file just fine, but am having difficulty in setting the license. I have,
string licenseFile = my_path_to_license_file_in_bin_directory + “Aspose.Total.lic”;
Aspose.Words.License license = new Aspose.Words.License();
license.SetLicense(licenseFile);
but I’m still getting the evaluation copy text at the top of the Word Doc. Any advice?
Thanks much,
Ed
Hi
Thanks for your inquiry. Please check these points.
· Make sure your call to SetLicense gets executed. Step through in the debugger.
· Make sure your code does not catch and silence an exception thrown by Aspose.Words licensing code. For example, Aspose.Words will throw if it cannot find the license.
· Make sure the input documents do not already have the evaluation message. Aspose.Words does not delete existing evaluation messages.
· Make sure SetLicense is executed before you instantiate any Document object.
Best regards.
Thanks much for your help, I got it figured out. It ended up being a mistake on my part.