Implementing LIcense

here is the code i am using which isnt stopping the Evaluation string being printed on the document:

Aspose.Words.Document doc = new Aspose.Words.Document(stream);
Aspose.Words.License license = new Aspose.Words.License();
license.SetLicense(“Aspose.Words-4.lic”);


Hi Dominic,


Thanks for your inquiry. You need to set the license before using any other Aspose.Words classes. Here is the correct way to apply the license:

1- License license = new License();
2- license.SetLicense(MyDir + @“Aspose.Word.lic”);
// Now create instance of Document class after setting license
3- Document doc = new Document(MyDir + @“in.docx”);

Best regards,