Jake Reynolds

Can anyone inform me of some best practices on how to bind repeating XMLNodes to a dataset I just want to be able to display a field in a database inside of XMLNodes mapped into my document. Some of these may be variable in amount depending on the amount of rows returned. The XMLNode host control is easily bound but what options are available to bind data to repeating nodes Do I have to manually navigate the document structure and fill in XMLNode.Range.Text or what

Thanks,
Jake


Re: Visual Studio Tools for Office Binding Repeating Nodes to a Database in Word

Mohit Gupta - MSFT

Hi Jake.

For XmlNodes host control, there is no data binding support that VSTO provides. You need to perform this binding manually.

Thanks

Mohit.






Re: Visual Studio Tools for Office Binding Repeating Nodes to a Database in Word

Jake Reynolds

Thanks for the reply. Do you know of any good example code out there regarding manually populating repeating XML nodes

Thanks,
Jake




Re: Visual Studio Tools for Office Binding Repeating Nodes to a Database in Word

Mike Walker

You could edit the document outside of word and use a basic XML Dom to repeat data inside with a foreach loop. Alternatively I would need a lot more information on what type of document and data you would like to repeat.


Regards