Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C# ASP.NET
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 6-Dec-12 0:39am
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
0 Zoltán Zörgő 330
1 Peter Leow 204
2 Sergey Alexandrovich Kryukov 180
3 OriginalGriff 160
4 88388132 128
0 Sergey Alexandrovich Kryukov 8,288
1 OriginalGriff 6,396
2 Peter Leow 3,557
3 Zoltán Zörgő 3,221
4 Richard MacCutchan 2,397

Advertise | Privacy | Mobile
Web02 | 2.8.150123.1 | Last Updated 3 Aug 2013
Copyright © CodeProject, 1999-2015
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