Click here to Skip to main content
13,148,136 members (37,548 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I am new to coading and wondering of any1 can help me with writing an application which can be used to fill the missing details in a word document.
I am making manuals for my company and all this manuals have the same format except that some deatils like serial numbers, and reference number and some other text fiels are changed, i want to automate it as its a pian to correct formatting of the document all the time.
can an application be made where i can take the base word file and edit it in .net application in that way i will be spared the word of correcting the format of each file i create.
Posted 5-Dec-12 23:39pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Microsoft Word Documents from ASP.NET[^]

Look at the section regarding templates and bookmarks, this is exactly what you need.
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

In one of my project I had the same requirement. I created a base document with all the static content. The content that needed to be changed dynamically was written within << and >> tags. For example <<name>> would be replaced with actual name at runtime. For this I used word's find and replace function using C#. Just google "MS Word's find and replace functionality using C#". There are plenty of articles out there. One good example is this:[^]

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.170924.1 | Last Updated 3 Aug 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100