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

View: 3953|Reply: 2

[Source] VSTO (IV) Fill the picture into a Word document

[Copy link]
Posted on 5/3/2023 10:43:03 PM | | | |
Requirements: The Word template marks an image content control that uses VSTO development to fill the image to a specified location.

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



According to your needs, add "Image Content Controls" to the Word document, as shown in the following figure:



Save the filled source image to the temporary folder on your hard drive, and then get the path, the source code is as follows:

The only downside to this solution is:You need to save the picture to a temporary folder and delete it after filling it is completed, it would be perfect if you could fill byte[] directly into the image control.

(End)





Previous:RabbitMQ: Who will create Queue and Exchange
Next:VSTO (V) Deletes content controls in Word
Posted on 5/5/2023 3:37:40 PM |
Learn to learn
 Landlord| Posted on 5/7/2023 9:26:53 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