word 2003 bookmark/data extraction - new functionality

L

Lysa

In prior versions of Word (pre-2003), users have created word templates with
bookmarks. They enter value into the bookmark range. Then we have a program
that extracts the bookmark range value and we use that data for other things.
Does Word 2003 offer any other functionality that would replace this?
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?THlzYQ==?=,
In prior versions of Word (pre-2003), users have created word templates with
bookmarks. They enter value into the bookmark range. Then we have a program
that extracts the bookmark range value and we use that data for other things.
Does Word 2003 offer any other functionality that would replace this?
Difficult to give a yes/no answer. Nothing that really replaces it, but there
are some alternatives.

XML tags, that correspond to an XML schema attached to the document. Save as
XML, and you can extract the content from the tags without even opening the
document.

VSTO 2005 supports "data islands" (that base on bookmarks) that also allow you
to manipulate the data without opening the document.

Is that the kind of thing you mean?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
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 :)
 
E

elixirmike

Cindy, I have a document in which I am using the XML elements of 2003. I have
a word document I have attached my custom Schema to, and now I wish to
programmatically grab that data and invoke a web-service.

I have started a smart document solution with it, but it's not clear how to
reference those XML elements programmatically?? I can grab the text of the
word document and pass that to a web-service, but I really just want to grab
the xml elements.

Do you know how I would do that??
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?ZWxpeGlybWlrZQ==?=,
I have a document in which I am using the XML elements of 2003. I have
a word document I have attached my custom Schema to, and now I wish to
programmatically grab that data and invoke a web-service.

I have started a smart document solution with it, but it's not clear how to
reference those XML elements programmatically?? I can grab the text of the
word document and pass that to a web-service, but I really just want to grab
the xml elements.
If you've connected a schema, then the XML in "your" elements is assigned to a
particular namespace that's different from anything else in the Word document.
So the simplest approach - whether you're automating Word or reading from the
document saved as an XML file - would be to pick up all the XML nodes belonging
to your namespace. This can be done with MSXML explicitly or by applying a
transform.

(Note: my answer is assuming you already know how to use MSXML and transforms,
that you're only uncertain as to how to get at the XML in the Word document. If
you haven't this XML background, please describe what XML experience you have
so that I know how to phrase my next response :))

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
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