本文介绍了删除书签和随附标签的策略(Word)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在开发一个项目,通过代码创建和填充文档。该文档是从单词模板创建的。该文件被视为包含所有可能部分的主文件。每个部分都包含特定文本和内容控件。
我希望将主文档用作图形用户界面,以允许关键用户更改某个部分的外观。每个部分都附有书签。


使用Open XML SDK 2.0创建和填充文档时,根据用例,只需要一些部分。所以我必须删除所有不需要的部分。封闭书签用于导航到该部分。


由于Open XML模型允许书签嵌套,甚至互相覆盖或至少其他标签(Tabel,Paragraph)。这个过程非常复杂。是否有任何策略(最佳实践)删除书签,包括每个包含的内容?


感谢您的每一个建议


亲切的问候b $ b Patrick






kapaya software gmbh


www.kapaya.com

解决方案

Hi,

I am working on a project where Documents are created and filled via code. The document is created from a word template. The document is regarded as a master documents with all possible sections. Each section is containing specific text an content controls. I want the master document to be used as a graphical user interface to allow key users to change the look of a certain section. Each section is enclosed with a bookmark.

While the document is created and filled using Open XML SDK 2.0, depending on use case only some sections are needed. So I have to delete all not needed sections. The enclosing bookmark is used to navigate to the section.

Since the Open XML model allows bookmarks to be nested and even overleap each other or at least other tags (Tabel, Paragraph). This process is very complicated. Are there any strategies (best practices) to delete a bookmark including every contained content?

Thanks for every suggestion

Kind regards
Patrick


kapaya software gmbh
www.kapaya.com

解决方案


这篇关于删除书签和随附标签的策略(Word)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-30 23:11