Could not load license on the first time

Hi,

I’ve purchased a license for 2 developers, enterprise edition and tried
to develop a .NET application using a DOC file as the template. I
copied the Aspose.Words.lic file to the same folder with the
Aspose.Words.dll and the bellow bug occurred:

  • Start the app

  • Try to generate the first time, the output DOC file had the “Evaluation Only. Created with Aspose.Words. Copyright 2003-2007 Aspose
    Pty Ltd.” line.

  • From the second time, this line disappeared.

    But everything is fine with a RTF template from the first time of generation.

    Can you give me a clue?

Hi
Thanks for your inquiry.
Here are some points to check:

  • 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.

Hi,
Thank you for your reponse.
- Input document does not containt the evaluation message.
- SetLicense is called right after the program begins.
If I use a RTF document as the input template, it works fine. But when I use a DOC file, it only works from the second time I press the “Generate” button!

Hi
I can’t reproduce this on my side. Could you please create sample application that will allow me to reproduce problem?
Best regards.

Sorry for my mistake. A Document object is created before the SetLicense statement.
Thank you for your response. Everything is fine now.