Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Document merging in C#.NET

Document merging in C#.NET

Scheduled Pinned Locked Moved C#
csharpphpdatabasecomxml
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bijayani
    wrote on last edited by
    #1

    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

    P 1 Reply Last reply
    0
    • B 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

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      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.

      My blog | My articles | MoXAML PowerToys | Onyx

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups