This article is a mirror article of machine translation, please click here to jump to the original article.

View: 4255|Reply: 2

[Source] VSTO (V) Deletes content controls in Word

[Copy link]
Posted on 5/4/2023 8:17:29 PM | | | |
Requirements: After filling the content control with data, you need to delete the content control, or we select the specified content area, delete the content control in that area, this article uses VSTO programming to delete the content control in Word.

First, let's take a look at the renderings:



We click to the content area, and if the area contains content controls, remove the content controls, the code is as follows:

Of course, it can also be passedTitleandTagAttribute fetching finds the content control and then deletes it, the code is as follows:

(End)





Previous:VSTO (IV) Fill the picture into a Word document
Next:VSTO (VI) cancels or blocks the Word document from being saved
Posted on 5/5/2023 3:36:35 PM |
Learn it
 Landlord| Posted on 5/7/2023 9:26:47 AM |
VSTO (VI) cancels or blocks the Word document from being saved
https://www.itsvse.com/thread-10581-1-1.html

VSTO (V) Deletes content controls in Word
https://www.itsvse.com/thread-10579-1-1.html

VSTO (IV) Fill the picture into a Word document
https://www.itsvse.com/thread-10578-1-1.html

VSTO (III) Inserts DataTable data into a Word document
https://www.itsvse.com/thread-10575-1-1.html

VSTO (2) Get the Word Chinese character length selection plug-in
https://www.itsvse.com/thread-10574-1-1.html

VSTO (1) Brief introduction and development tools
https://www.itsvse.com/thread-10573-1-1.html
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com