Dear Joel Krist & fellow programmers!
I have tried countless ways and times to programmatically update the bibliography & citations in a word document. I recorded a macro in Word 2007 after doing the following:
1.) CTRL + A
2.) [F9]
Which gave me the following macro VBA:
Selection.WholeStory
Selection.Fields.Update
And now I need to write it in C#, so I have done the following:
WordApp.Selection.WholeStory();
WordApp.Selection.Fields.Update();
The result:
NOTE: I've nested a WdFieldType.wdFieldCitation field inside of its own respective of RichText Content Control, and I have done this 1:M times within an outer parent RichText Content Control, thereby making a "collection" of children RichText CC(s) within a parent RichText CC. Now, using the ISO 690 Numerical xslt bibliography style, every single citation field turns into (1). I've proven in Word that if I drag a citation field into a RichText Content control that the out-of-the-box renumbering works, despite it is nested. I just really just need the newly updated <RefOrder> value which I know exists and is appended to the xml of the bibliography object, but nothing updates.
Why?
Your help is much appreciated,
SCL