tags:

views:

21

answers:

1

how i caon make a wordml read-only from .

any ideas??

A: 

if you are using the Open XML SDK 2.0 you can specify a file as read-only in the second parameter to the open method call:

// false is the read-only property
using (var wordprocessingDocument = WordprocessingDocument.Open(documentFileName, false))
{
     // Do work here            
}
amurra