Repeating content controls, anyone?

A

arvind.sv

Hi,

I've struggled to find any info about this. I'm trying to bind a custom
XML document to a repeating control in Word 2007. But, of course, as
you know, there is no repeating content control in Word 2007.

I've looked at InfoPath 2003, and it does exactly what I need (after I
load the custom XML). But, I need a docx file whereas InfoPath doesn't
export to docx. I know about the round-about InfoPath -> MHT -> docx
route, but I'd prefer not to take that.

I cannot do any Interop stuff to open the document and add content
controls by hand, as some of this has to happen on the server side. I
could parse the XML and create content control XMLs, but it's not
really an ideal solution.

A merge field of type "Directory" does what I need. But, I need XML
mapping. On the server side.

So, my question is: Am I missing something? Is there an easy wasy to
bind repeating XML like the one shown below to some kind of repeating
content control? If not, do you know of any such feature coming up in
Word soon?

Any help is appreciated,
Arvind
 
C

Cindy M.

I've struggled to find any info about this. I'm trying to bind a custom
XML document to a repeating control in Word 2007. But, of course, as
you know, there is no repeating content control in Word 2007.

I've looked at InfoPath 2003, and it does exactly what I need (after I
load the custom XML). But, I need a docx file whereas InfoPath doesn't
export to docx. I know about the round-about InfoPath -> MHT -> docx
route, but I'd prefer not to take that.

I cannot do any Interop stuff to open the document and add content
controls by hand, as some of this has to happen on the server side. I
could parse the XML and create content control XMLs, but it's not
really an ideal solution.

A merge field of type "Directory" does what I need. But, I need XML
mapping. On the server side.

So, my question is: Am I missing something? Is there an easy wasy to
bind repeating XML like the one shown below to some kind of repeating
content control? If not, do you know of any such feature coming up in
Word soon?
Well, there is nothing "below" in your message, but I think I understand
what you're asking. You want a control that can show a "list" of nodes
under a single XML node? The way a ListObject in Excel can do this?

No, there's no equivalent in Word that will populate anything
automatically. You'd have to parse the XML. I don't know what the final
document is supposed to be, but it might be simpler for you to "target"
the data to something other than ContentControls.

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