xsd tagging problem in footnote.

B

bvijayfriend

Hi,

I could not apply any tag in footnote area of an word document thru VB
DLL automatically.

Steps i followed:

I have loaded sample xsd in word 2003.

Based on the xsd, i have to programatically search and replace the
bold text to tags i.e., "<bold>sample text</bold>".

I found except in footnote area this code is working fine.

Also, i have noticed the xmlnamespace is not available in footnote
pane.

CODE I AM USING:

If Selection.InRange(activeDocfnRng) = True Then
Selection.XMLNodes.Add "bold", "xsd_test"
endif

Any idea to get rid of this problem.


regards
Veeraraghavan.
 
C

Cindy M.

I could not apply any tag in footnote area of an word document thru VB
DLL automatically.

Steps i followed:

I have loaded sample xsd in word 2003.

Based on the xsd, i have to programatically search and replace the
bold text to tags i.e., "<bold>sample text</bold>".

I found except in footnote area this code is working fine.

Also, i have noticed the xmlnamespace is not available in footnote
pane.

CODE I AM USING:

If Selection.InRange(activeDocfnRng) = True Then
Selection.XMLNodes.Add "bold", "xsd_test"
endif

Any idea to get rid of this problem.
Please note that this newsgroup is targeted at end-users, not
programming questions. You may find the word.vba.general newsgroup or
one of the office.developer newsgroups a better place to ask such
questions.

You don't show us how you define activeDocfnRng, but assuming it's
something like ActiveDocument.Content, then the code is doing what
you're instructing it to do. ActiveDocument.Content comprises only the
main body of the document. It won't address headers, footers, footnotes,
or graphics (textboxes).

You need to explicitly name the various "Stories" in order to access
them. Look up the term StoryRanges in Word's VBA Help file and pay close
attention to the code samples here, and in all related topics.

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