Hello,
I would like to use Word for printing the documents from our C# application.
I know how to create a template in Word using the schema of my xml source,
but I cannot easily find how to present the XML data to the word document and
do the mailmerge. All samples I have found so far are based on SQL statements.
My output document is for example an invoice, with one-to-many relationships.
Any suggestion is very welcome
Regards,
Dirk
Doug Robbins - Word MVP - 29 Oct 2006 11:36 GMT
Sounds like you are probably trying to perform a "multiple items per
condition (=key field)" mailmerge which Word does not really have the
ability to do:
See the "Group Multiple items for a single condition" item on fellow MVP
Cindy Meister's website at
http://homepage.swissonline.ch/cindymeister/mergfaq1.htm#DBPic
Or take a look at the following Knowledge Base Article
http://support.microsoft.com/default.aspx?scid=kb;en-us;211303
http://www.knowhow.com/Guides/CompoundMerges/CompoundMerge.htm

Signature
Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.
Doug Robbins - Word MVP
> Hello,
>
[quoted text clipped - 13 lines]
> Regards,
> Dirk