I am a novice, is learning the use of aspose.word for .net, I would like to modify the author , title and other information of the document,but i do not know how to edit it , ask for help,thanks!
Thanks for your inquiry. To modify the author, title and other information about the document please use the latest version of Aspose.Words for .NET and try following code example. Hope this helps.
// The path to the documents directory. string myDir = GetDataDir_WorkingWithDocument(); // Load the document from disk. Document doc = new Document(myDir + "Your Document Name.doc"); // Modifying Document Title, Subject and Author Name doc.BuiltInDocumentProperties.Title = "Aspose.Words"; doc.BuiltInDocumentProperties.Subject = "Modifying Document Properties"; doc.BuiltInDocumentProperties.Author = "Jawad Ahmed"; // Save the document to disk. doc.Save("Updated Document Properties.docx");
thank you ,Jaward! I have solved it like this
docx.BuiltInDocumentProperties["Author"].Value = "aaa"; ,
but your method is better!
best wishes,and happy new year!
I am glad it fixes your issue. If you still face any issue regarding Aspose.Words, please let us know we will try to help you as much we can. Thanks. Happy New Year.