Alex Rivera | Logout

How to replace content in template docx document and Open XML SDK 2.0 (Aug 09)?

Asked 2009-09-01T09:56:58.823
17

I have a "template" docx document which contains the desired layout, and wish to insert content using C#, but I cannot find a way to uniquely address specific sections of the document, such as paragraphs or tables. What is the best way to uniquely identify elements in the document? Thanks, Matt Sharpe.

Edit
Report

1 Answer

3

I think you are looking for either bookmarks, or content controls (on the Ribbon's Developer tab, code example here)
I've used Named Ranges in Excel for the same purpose.

answered 2009-09-02T15:35:50.223

Your Answer