Get an XMLNode by Name?

  • Thread starter Scott Bellware [C# MVP]
  • Start date
S

Scott Bellware [C# MVP]

Ho boy am I lost! Please have the Word API team report to my office
immediately for disciplinary usability lab duty :)

I have a task pane form. I have an XML structure.

So here's what I need to be able to do:
- Access task pane form controls by name, and set and get their values
- Access XML nodes in the document by name, and set and get their values

I don't know how to get references to these objects.

I know how to do this using direct mappings and a million pseudo event
handlers in a SmartDocumentsWrapper-derived class. That particular solution
isn't what I'm looking for. It handles the hello world, but my customer
proof of concept will disintegrate for sure if I try to sell a hello world.
Doh, I should have known better than to stray into the odd etherial world of
Office automation.

Is there a way to do these things? Is it in the docs somewhere? Is
programmatically getting/setting the values of XML nodes and task pane
controls just not what this API is supposed to be able to do?

Please help. This is one of the most painful computing expereinces of my
life. Two books and a couple tens of google searches later, and I'm still no
closer to being able to build a real app out of this antiquated guck than I
was ten hours ago. Sigh.

Frustrated. Shoot me.

Scott Bellware
C# MVP
www.bellware.net
 
C

Cindy M -WordMVP-

Hi scott,

No idea if you can do what you want to do with the SmartDoc functionality,
but you might have more luck if you (cross-)post in the appropriate
groups? SmartDoc stuff is (theoretically) supported in the office.smartags
group. And XML in office.xml.
I have a task pane form. I have an XML structure.

So here's what I need to be able to do:
- Access task pane form controls by name, and set and get their values
- Access XML nodes in the document by name, and set and get their values

I don't know how to get references to these objects.

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