![]() For the sake of simplicity, I am assuming a static image file which is already available with me. Assume that we have an image file already. Embedding an Image to a Placeholder on the Fly The remaining part of the article deals with this issue. Our requirement is to embed an image (of our choice) at run time to this place holder. It can be found in the DocxImages\DocxImages\SampleTemplate folder. I have uploaded a sample Word document with all this done. We now have a document with an image placeholder. Now save the document and then close it.The tag name of the image place holder used in this article source code is ImagePlaceHolder1. This will open up the window "Content Control Properties". Select the placeholder, and click "properties" button next to the icon. Once the icon is clicked, an image placeholder is added to the Word document.Click on the icon which says "Picture Content Control".How To Add an Image Placeholder to a Word Document For those who know how to add an image placeholder to a Word document, they can skip the next portion, and directly look at the implementation details. Let us assume a sample document which contains an image placeholder with some tag value. This article is about the details of adding an image to a Word document programmatically.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |