Extracting "Last updated by" property of a word file
I am making an application in which I need to keep a check on all the properties of a word file like Last Updated,Name etc I also need Last Updated by, i.e the user who made changes in the file. How can I get this information?
EDIT
This is wha开发者_如何转开发t I am doing: FileInfo[] wordFiles = dirInfo.GetFiles("*.doc"); I am extracting other properties like this:
wordFiles. (and all the properties are listed but not the one i am looking for) I am looking for some code in C# which can help me.
You can use OpenXML SDK. Here is a good example on how to get the properties of a document.
If you're talking about DOC files, those are OLE compound documents, and you can read the properties directly via the OLE Compound document functions.
Here's a page that details opening and reading properties in C++
http://support.microsoft.com/kb/186898
精彩评论