We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Search for field in word document

Hi,

How can i search for field (DOCPROPERTY COMMENTS) for exemple in word document?

Regards

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. You can try using BuiltInDocumentProperties collection. Please see the following code:

Document doc = new Document("in.doc");

Console.WriteLine(doc.BuiltInDocumentProperties["COMMENTS"].Value.ToString());

Best regards,