convert xml table in word table

D

d.gallone

Hello,

In a VB .NET application I need to insert an XML file (formatted like a
table) in a Word table inside my Word 2003 document.

I can parse the XML file, create the table in Word and insert line by
line the data, but do you known another way ?

Thanks in advance,
David GALLONE
 
C

Cindy M -WordMVP-

In a VB .NET application I need to insert an XML file (formatted like a
table) in a Word table inside my Word 2003 document.

I can parse the XML file, create the table in Word and insert line by
line the data, but do you known another way ?
Alternatives:

TRANSFORM the "plain" XML into valid WordProcessingML (a table) then
insert that using the InsertXML method.

Concatenate the information in a delimited string, assign that to a
range, then use the ConvertToTable method.

Both of these approaches would be faster than your proposed method :)

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 :)
 
Top