Make files Read only

How to make sent email attachment(doc,docx) is read only?

@Abdul_wajeed,

You can use Aspose.Words for .NET API to mark whole Word document (DOC, DOCX files etc) as read-only by using the following code: (also see Protecting Documents)

Document doc = new Document("D:\\temp\\input.doc");
doc.Protect(ProtectionType.ReadOnly);
doc.Save("D:\\temp\\18.9.doc");