I am using Visual studio 2005(.net Framework 2.0).My project is window application and using c# language. We are having word templates created
in office 2003, 2007 and 2010.
I want to search text (string) in word template (.dot/.doc/.docx).This text/string is exist in two places in word doc :
1) table
Question Title
|
Issue no
|
Change description
|
Page no
|
Title
|
Modified By
|
date
|
«QUESTION_TITLE»
|
«Issue_no»
|
xyz
|
«QUESTION_MODIFICATION_NAME»
|
«QUESTION_MODIFICATION_DATE»
|
2) title/subtitle
1.2.1 xyz
I want the page no and title/subtitle to copy into table.
For an example table is exist on page 1 and having column value as
xyz. Title/Subtitle 1.2.1 is exist on page no 3 with same value
xyz.
Now I want to update table by page no and title/subtitle in word doc :
Question Title
|
Issue no
|
Change description
|
Page no
|
Title
|
Modified By
|
date
|
«QUESTION_TITLE»
|
«Issue_no»
|
«QUESTION_MODIFICATION_DESCRIPT»
|
3
|
1.2.1
|
«QUESTION_MODIFICATION_NAME»
|
«QUESTION_MODIFICATION_DATE»
|
I am not able to find c# code to search text/string in word doc and modify table with page no and title in word doc.
Please help me to find c# code.
Nitin Varshneya