Click here to Skip to main content
15,908,673 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to bind some information from sql Database to the word document, something like Mail Merge, but in Mail Merge we can bind only one row of information. in my application the sql will display multiple rows for one id. Is there any solution for this?

Eg:

Name: John

Districts
Dist1
Dist2
Dist3
Dist4

Location: London
Posted
Updated 16-Aug-12 23:42pm
v2
Comments
Christian Graus 17-Aug-12 6:00am    
I doubt there's a way that's not completely manual. I am saying as a comment, in case someone knows better, but I doubt it.
bbirajdar 17-Aug-12 6:07am    
Use Word Interop.. You can do anything with word documents programatically..

1 solution

Go through the below given link it will help you to solve your issue.

http://www.simple-talk.com/sql/t-sql-programming/writing-to-word-from-sql-server
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900