Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Locusta Locusta is offline
external usenet poster
 
Posts: 1
Default C#: XML + template = new document?

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
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default XML + template = new document?

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/cindy...faq1.htm#DBPic


Or take a look at the following Knowledge Base Article

http://support.microsoft.com/default...b;en-us;211303


http://www.knowhow.com/Guides/Compou...poundMerge.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

"Locusta" wrote in message
...
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



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you use a template? TheWheel Microsoft Word Help 10 August 25th 06 04:34 PM
directory mail merge: auto pop-up template for the final listing?? Ido Mailmerge 3 June 28th 06 02:09 PM
Mail Merge Data Question Tom Bean Mailmerge 7 May 26th 06 12:02 AM
How Come? Michael Koerner Mailmerge 9 February 10th 06 10:29 PM
CPU Usage When working with a Template I Created KM1 Microsoft Word Help 6 May 24th 05 04:38 PM


All times are GMT +1. The time now is 03:46 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"