We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Not allowing editing in generated .doc

Hello there,

Is it possible not to allow editing in a geneated .doc ?

Thanks,

Ben

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

Thanks for your interest in Aspose.Words. Yes of course you can make the document to be read only. Please try using the following code:

doc.Protect(ProtectionType.ReadOnly);

Also see the following links to learn more about document protecting.

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

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

Best regards.