Insert in Word bookmarks - Open XML SDK

匆匆过客 提交于 2019-12-08 05:12:58

问题


I have to learn some things abount Open XML SDK, working with C#. Things like @Ahmad Mageed answered here: Insert OpenXmlElement after word bookmark in Open XML SDK

I'm in a similar situation, but in my case I need to insert text or elements inside the bookmark...(not after it)

Need some help please. (Sorry for my English) Thanks.


回答1:


Absolutely. Check out the "Bookmarks" section on Eric White's article Inserting / Deleting / Moving Paragraphs in Open XML Wordprocessing Documents.

Here's a way to insert between bookmarkStart and bookmarkEnd: Replace bookmark text in Word file using Open XML SDK



来源:https://stackoverflow.com/questions/5297139/insert-in-word-bookmarks-open-xml-sdk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!