Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Attachments in Office Documents. How Do I know who have?

Status
Not open for further replies.
Aug 24, 2004
98
US
I need to examine a group of .doc and .rtf files to see if they contains attachments inside them (other office documents). Also then I need to determine if those documents have attachments. Any idea how could I accomplish this?

Thank you
 
Hi jpinto1167,

If a Word file has an external link to another file, the link will be in one of the following fields:
RD
LINK
INCLUDE *
INCLUDEPICTURE
INCLUDETEXT
IMPORT *
HYPERLINK
* These are mentioned only for backwards compatability - they have been superceded by other fields in the list.

Other embedded objects (eg Excel workbooks) will be contained in an EMBED field.

You can test for any/all of these without opening the document in Word, by using a script that reads the file in text form. Note, though, that you'll likely also pick up HYPERLINK fields that only act internally to the document and that some of the field names might be used in contexts other than for fields.

Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top