Document merging in C#.NET
-
Hi All, I am sharing tips which is about Document merging in C#.NET. Some times during application development we need to generate a MS Word document from a predefined format and some custom data. The predefined format is generally called as Template. This template used to carry some merge fields which can be replaced with the user data. The user data can be taken from DB or XML data source etc. The following procedure describe how to generate a MS Word document by merging a word template with external data using C# and MS Word reference libraries. Step 1:Create a template word document Hello {Recipient_name}, Wish you a very Happy New Year. Thanks - Here {Recipient_name} is called as a merge field and this can be replaced with the external content. - The shortcut key to create the merge field in word document is : ctrl+F9 Hope you find this tipshttp://www.mindfiresolutions.com/Document-merging-in-CNET-734.php[^] useful and of assistance. Thanks, Bijayani
-
Hi All, I am sharing tips which is about Document merging in C#.NET. Some times during application development we need to generate a MS Word document from a predefined format and some custom data. The predefined format is generally called as Template. This template used to carry some merge fields which can be replaced with the user data. The user data can be taken from DB or XML data source etc. The following procedure describe how to generate a MS Word document by merging a word template with external data using C# and MS Word reference libraries. Step 1:Create a template word document Hello {Recipient_name}, Wish you a very Happy New Year. Thanks - Here {Recipient_name} is called as a merge field and this can be replaced with the external content. - The shortcut key to create the merge field in word document is : ctrl+F9 Hope you find this tipshttp://www.mindfiresolutions.com/Document-merging-in-CNET-734.php[^] useful and of assistance. Thanks, Bijayani
This isn't the right place to post this. This is a tip/trick, so it should be posted as one. By posting here, you have made it appear as though this is a question, and it will soon disappear from this page. I would suggest that you move it now.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.