Using PowerTools to update bookmark / field values in Word docx?

Sep 8, 2011 at 5:49 PM

Does PowerTools offer proper means to generate Word documents with up-to-date values in bookmarks and form fields? I've got a number of docx report documents that I should populate with current data values from database. This should be done in server as a web service. The report files have both bookmarks and Word form fields where the updated data should be set.

In addition, some reports consist of multiple document parts, and whether any of the doc parts will be included in the main document depends on the values to be set on certain bookmarks.

OpenXML seems a promising document format for this kind of server side document manipulation. But I haven't found a way to modify the doc content with the SDK alone. Other opinions anyone?

Sep 9, 2011 at 7:01 AM


See this video on retrieving the text of a bookmark.

Then view this video on setting the text of a bookmark.

To date, I haven't seen any code on setting fields.  It is not very hard, but we should have something on that.  I'll add it to the list.