"Unit of data" in a Word document

S

sphinney

I'm using Microsoft Access 2007 to embed Word 2007 documents into a database.
When embedding documents using VBA, there are two properties that reference
the source document:

1. "SourceDoc" - Which contains the file path of the document
2. "SourceItem" - Which contains a specific item or, as the Access help file
states, a "unit of data" in the document

The example provided in the Access help file for the SourceItem property is
for the situation when an Excel doucment is embeded (i.e. "SourceItem =
'R1C1:R5C5'").

Can someone point me to the documentation where the Word "unit(s) of data"
are defined? What I really want to do is reference a specific table in the
Word document.

Thanks in advance for your help,
sphinney
 
C

Cindy M.

Hi Sphinney,
I'm using Microsoft Access 2007 to embed Word 2007 documents into a database.
When embedding documents using VBA, there are two properties that reference
the source document:

1. "SourceDoc" - Which contains the file path of the document
2. "SourceItem" - Which contains a specific item or, as the Access help file
states, a "unit of data" in the document

The example provided in the Access help file for the SourceItem property is
for the situation when an Excel doucment is embeded (i.e. "SourceItem =
'R1C1:R5C5'").

Can someone point me to the documentation where the Word "unit(s) of data"
are defined? What I really want to do is reference a specific table in the
Word document.

I don't really know, but my best guess would be a Bookmark object (provide the
bookmark name). Bookmarks are what have traditionally been used to specify
contiguous sections of text.

Thing is, a table won't have a bookmark by default; you'd have to add the
bookmarks before storing the document in your database. Most efficient would be
for you to use the OpenXML file format (meaning you wouldn't have to automate
the Word application). For that, I recommend OpenXMLDeveloper.org

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top