Take the 2-minute tour ×


I am using the Microsoft.Office.Interop.Word library to automatically fill text into a Word template form (.dotx).

When i am filling the form with text i use MS Word bookmarks like this:

object oBookMark = "Bookmark-To-Find";
doc.FormFields.get_Item(ref oBookMark).Result = Value-To-Insert;


The reference is there so i don't need to fill out same information 100 times in the same document.

The MS Word Reference needs to be manually updated when the document is created. Is there anyway to fix this?

Questions: Can i update all references with c# code? Is there any better way to make this?

share|improve this question
Well i dont have any code for the cross reference, the question was: Is there any way to update references when document is created. –  Stefan Karlsson Jan 13 '13 at 11:57
add comment

1 Answer

You need to update all fields in the document:


You can also update particular fields only by calling the Update() method of the respective fields within the doc.Fields collection.

share|improve this answer
add comment

Your Answer


