C#: XML + template = new document?

L

Locusta

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
 
D

Doug Robbins - Word MVP

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


--
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
 

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