Click here to Skip to main content
15,898,222 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
Can anyone please guide me on how to popluate a word document form with values retrieved from DB?

Thanks.
Ann
Posted

In Word 2010 you click on Mailings, then on Select Recipients and Use Existing List. In the dialog you clieck on New Source... This will allow you to query SQL Server or other sources or you could also in the dialog browse for a Data Query file or an Excel file containing your list.

After this, you can click on Insert Merge Field to insert your fields into the document.
 
Share this answer
 
Comments
Zafar Sultan 25-Mar-13 7:10am    
I think the OP wants to do that dynamically. I mean, at run time. Using C# perhaps? :)
 
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