Insert image to export word

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.