How to insert image surrouded by paragraph text in word document

Home Forums WordprocessingML How to insert image surrouded by paragraph text in word document

This topic contains 1 reply, has 2 voices, and was last updated by  Anonymous 4 years, 2 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #8829

    MayuriB
    Participant

    Hi,

    I have a requirement in my MVC application where I want to read predefined Word document template(docx file) and replace placeholders in that template with some text or images. I am able to replace placeholders with normal text value using Regex. I am even able to replace standalone placeholders with images by inserting ImagePart and Drawing object to the document at placeholder location. But I am facing issue for image replacement when the placeholder is enclosed/inside a paragraph text.
    For Example, below is one of the paragraph I have in the template document:
    “The searches conducted on the open public domain revealed that Cloud9 has its own official website as Website. The website of the company reveals that the company is “As per website……” The screenshot of the website has been shown below: {InternetScreenShot01} On further searches into product categories and we found {Status} brand / mark products was mentioned on the website. The screenshot of the search results showing the {Status} brand / mark products has been shown below: {InternetScreenShot02}
    Here there are two placeholders in this para {InternetScreenShot01}, {InternetScreenShot02} which should get replaced by an image keeping rest of the para text as it is.
    Can anyone please suggest me how to achieve this? Its critical for me as my report generation module delivery is halted because of this

    Thanks in advance

    #9724

    Anonymous

    Select the picture.
    Select Layout Options.
    Select the layout you want. Tip: In Line with Text puts the picture in a paragraph, just as if it were text. The picture will change position as text is added or removed. The other choices let you move the picture around on the page, with text flowing around it.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.