Hi,
I am trying to read from a word document multiple authors, but all I can find is a way to read just a single author using:
Word.Document doc = new Word.Document(fname);
doc.BuiltInDocumentProperties.Author;
What am I missing?
Thanks!
Hi,
I am trying to read from a word document multiple authors, but all I can find is a way to read just a single author using:
Word.Document doc = new Word.Document(fname);
doc.BuiltInDocumentProperties.Author;
What am I missing?
Thanks!
Hi Tzach,
Thanks for your inquiry. BuiltInDocumentProperties.Author property returns the name of the document’s author. Perhaps, you want to get the authors name for tracked changes in a document. Please use the Revision.Author property as shown in following code snippet to achieve this. Hope this helps you. Please let us know if you have any more queries.
Document doc = new Document(MyDir + "in.docx");
foreach (Revision revision in doc.Revisions)
{
Console.WriteLine(revision.Author);
}