activities
latest
false
UiPath logo, featuring letters U and I in white

Productivity Activities

Last updated Jun 12, 2025

PREVIEW
Add Picture

UiPath.Word.Activities.WordAddImage

Description

Adds an image in a specified Word document at a specified position relative to a text or bookmark. This activity must be added inside a Use Word File activity.

Project compatibility

Windows - Legacy | Windows | Cross-platform

Windows configuration

In the Body of the Activity
  • Picture to insert - Enter the full path of the image you want to insert, as a string.
  • Insert relative to - Select one of the following: Document, Bookmark, Text.
  • Position - The position in the document where to add the image. Select one of the following: Start, End, Before, After, Replace.

Cross-platform configuration

  • File - The complete path to the document file.
  • Picture to insert - Enter the path to the image file to insert.
  • Insert relative to - Select one of the following: Document, Bookmark, Text.
  • Position - The position in the document where to add the image. Select one of the following: Start, End, Before, After, Replace.

Examples

Adding an image at the start or end of a document

  • Insert relative to - Select one of the following: Document.
  • Position - The position in the document where to add the image. Select one of the following, depending on your case: Start or End.

Adding an image relative to a specific bookmark in a document

  • Insert relative to - Select Bookmark.
  • Bookmark - Enter the name of the bookmark relative to which to add the image. Alternatively, choose one of the other available options in menu to indicate the bookmark name

  • Position - Select the position where to add the image: BeforeAfter, or Replace the specified bookmark.
Adding an image relative to a specific text in a document
  • Insert relative to - Select Text.
  • Text- Enter the text relative to which to add the image.
  • Occurrence - Select the occurrences of the specified text relative to which to add the image:
    • All - Add the image relative to every occurrence of the text.
    • First - Add the image relative to the first occurrence of the text.
    • Last - Add the image relative to the last occurrence of the text.
    • Specific - Add the image relative to a specific occurrence of the text.
      • OccurrenceIndex - Enter the specific occurrence of the text. For example, if the text to search for appears five times in the document and you want to add the image after the second occurrence of the text, the Occurrence index should be set to 2
  • Position where to insert - Select the position where to add the image: BeforeAfter, or Replace the specified text.

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2025 UiPath. All rights reserved.