Activities
latest
false
Banner background image
Productivity Activities
Last updated 2024年3月27日

Replace Picture

UiPath.Word.Activities.WordReplacePicture

Description

Replaces all the occurrences of a picture in a Word document with another specified picture. The picture to replace is identified by its Alt Text. This activity must be added inside a Use Word File activity.

The Alt text is a short description of the image, which makes sense of that image when it can't be viewed. It describes the content of the image in a succinct and specific way. To set or view the alt text of an image in Word, right click the image and choose Edit Alt Text... from the context menu.

Configuring the Activity

In the Body of the Activity
  • Find pictures with Alt Text - Click Plus  on the right side of the field, and then select Text to enter the Alt Text of the picture to replace in the Text Builder. Alternatively, you can use one of the other options in the menu to indicate the Alt Text:

    • Data from the Project Notebook, a parent Excel file or Outlook account. For example, select an Excel file and then select a cell that contains the text, or indicate a field from a selected email in Outlook that contains the text.
    • Use Saved Value - Select a value that you previously saved for later use in the project.
    • Ask when run - Prompt for the text when the project is executed.
    • Open in Advanced Editor - Enter a VB expression.
  • Replace with picture - Click Browse  next to the field, and then browse to and select an image file to replace the picture in the document. Alternatively, click Plus  on the right side of the field, and then, from the menu, choose one of the available options to indicate the path to the image file to replace the picture with:

    • Data from the Project Notebook, a parent Excel file or Outlook account. For example, select an Excel file and then select a cell that contains the file path, or indicate a field from a selected email in Outlook that contains the file path.
    • Use Saved Value - Select a value in the form of a file path that you previously saved for later use in the project.
    • Text - Enter the file path in the Text Builder.
    • Ask when run - Prompt for a file path when the project is executed.
    • Open in Advanced Editor - Enter a VB expression.
Properties Panel

Common

  • DisplayName - The name displayed for the activity in the Designer panel.

Input

  • See the options in the body of the activity.

Misc

  • Private - If selected, the values of variables and arguments are no longer logged at Verbose level.
  • Description
  • Configuring the Activity

Was this page helpful?

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