Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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

Microsoft Word Documents from ASP.NET[^]

Look at the section regarding templates and bookmarks, this is exactly what you need.
 
Share this answer
 
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: http://www.wwco.com/~wls/blog/2010/07/03/find-and-replace-in-word-using-c-net/[^]
 
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