Free Support Forum - aspose.com

Aspose.words force word doc uneditable

I'm using aspose.word to dynamically insert text into a template word document using MailMerge. Is there a way aspose.word can lock the word document so that it is not editable? I don't want the user to be able to modify the generated word document...

You can protect a document as described here http://www.aspose.com/Wiki/default.aspx/Aspose.Words/ProtectingDocuments.html

But pay attention to notes about how serious this type of protection is.

Another option is to convert document to PDF and send as PDF to the client. You need to use Aspose.Words + Aspose.Pdf for that.