Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / January 2004

Tip: Looking for answers? Try searching our database.

using XML as mail merge data source in Word 2003

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
c2pro - 02 Jan 2004 22:11 GMT
Can a simple (single table) XML file be used as a data source in Word 2003's mail merge process. Word 2003's on-line docs list HTML as a data source but not XML. I really don't want to transform the XML file to HTML, or import / map XML into Excel 2003 and then use Excel as the data source.

Thanks.
Peter Jamieson - 03 Jan 2004 08:57 GMT
As far as I know, this is not possible "out of the box".

In principle, you could use an XML file as a data source if you had one of
the following:
a. a Word text converter capable of reading an XML file
b. an ODBC driver that treated an XML file as a table in a data source
c. an OLEDB provider that treated an XML file as a table in a data source
d. (possibly) something that would allow Jet to treat an XML file as a
linked table

I have a barebones, unfinished and poorly tested (a). Despam my address and
e-mail me if you are interested. In particular, it needs to be modified to
take account of new security stuff in Word 2003. I had plans for a
substantial overhaul and a crack at producing a (c), but they have been on
hold for a while. I suspect if (d) is feasible it would need a (b) anyway.

--
Peter Jamieson - Word MVP
Word MVP web site http://www.mvps.org/word

> Can a simple (single table) XML file be used as a data source in Word 2003's mail merge process. Word 2003's on-line docs list HTML as a data
source but not XML. I really don't want to transform the XML file to HTML,
or import / map XML into Excel 2003 and then use Excel as the data source.

> Thanks.
Claus - 07 Jan 2004 21:18 GMT
I changed the extension on the xml file to html and Word 2002 opened it as
an html table just fine.  I was then able to do the mail merge.

> As far as I know, this is not possible "out of the box".
>
[quoted text clipped - 22 lines]
> >
> > Thanks.
Peter Jamieson - 07 Jan 2004 23:13 GMT
Hmm, that's interesting as it doesn't seem to work here.

What text do the first few lines of your .xml file contain?

--
Peter Jamieson - Word MVP
Word MVP web site http://www.mvps.org/word

> I changed the extension on the xml file to html and Word 2002 opened it as
> an html table just fine.  I was then able to do the mail merge.
[quoted text clipped - 26 lines]
> > >
> > > Thanks.

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.