Recently, a project was created to generate WORD Based on the database content, including tables, images, and paragraphs. The image encountered the following problems:
How to output images in the order of generated content?
Query relevant information online, usually set
VaR S = word. application. selection. inlineshapes. addpicture (strpicpath, nothing );
SS. wrapformat. type = wdwraptype.Wdwrapsquare;
So what does wdwrapsquare represent?
View the word layout, including the following:
Then, word contains the following style:
Wdwrapbehind refers to the content below the text.
Wdwrapfront is floating above the text
Wdwrapsquare is a peripheral
Wdwraptight is a compact surround
And so on...
However, I tried all the la s here, but I still don't want them: Embedded!
Then, comment out the sentence "SS. wrapformat. type = wdwraptype.Wdwrapsquare", We found that the image can be exported correctly!
In the original word, the default value is the embedded type! Okay... The crowd looked for him, but the man was in the dark ~
Insert image to export word