Using the SDK I\'m building Word documents that contain reports. These documents need to have TOC. Does anybody have a complete solution that I can follow in order to unders
If you have a TOC field, this will cause it to be updated when the document is opened in Word (body is a reference to the document body):
DocumentFormat.OpenXml.Wordprocessing.SimpleField f; f = new SimpleField(); f.Instruction="sdtContent"; f.Dirty = true; body.Append(f);