Activities
latest
false
Productivity Activities
Last updated Jul 9, 2024

Add Image or Video to Slide

UiPath.Presentations.Activities.ReplaceShapeWithMedia

Replaces a placeholder with a media element with the same name. Use to populate a placeholder in a newly inserted slide with media or to replace media in an existing presentation. This activity must be added inside a Use PowerPoint Presentation activity.

Configuring the Activity

In the Body of the Activity
  • Presentation - Click Plus docs image on the right side of the field, and then select the presentation file where to insert the media.
  • Slide number - Click Plus on the right side of the field, then select the presentation file and the slide where to insert the media.

    Alternatively, use one of the other options in the menu to indicate the slide number:

    • Data from the Project Notebook or a parent Excel file. For example, select a cell in an Excel file to use the value in that cell.
    • Ask when run - Prompt for the slide number when the project is executed.
    • Number - Enter the slide number.
    • Use Saved Value - Select a numeric value that you previously saved for later use in the project.
    • Open in Advanced Editor - Enter a VB expression.
  • Content placeholder - Click Plus on the right side of the field, then select the presentation file, the slide, and then select the name of the placeholder where to insert the media.

    Alternatively, use one of the other options in the menu to indicate the placeholder name:

    • Data from the Project Notebook, a parent Excel file or Outlook account. For example, select a cell in an Excel file to use the value in that cell.
    • Ask when run - Prompt for the name when the project is executed.
    • Paste from clipboard - Paste a value that you previously copied to the clipboard in the project.
    • Text - Enter the name in the Text Builder.
    • Use Saved Value - Select a value that you previously saved for later use in the project.
    • Open in Advanced Editor - Enter a VB expression.
  • Image/Video file- Click Browse next to the field, and then browse to and select the image, video, or audio file to add.

    Alternatively, you can use one of the other options in the menu to indicate the path to the file to add:

    • Data from the Project Notebook, a parent Excel file or Outlook account. For example, select a cell in an Excel file that contains a file path.
    • Ask when run - Prompt for the file path when the project is executed.
    • Paste from clipboard - Paste a file path value that you previously copied to the clipboard in the project.
    • Use Saved Value - Select a file path value that you previously saved for later use in the project.
    • 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.

Options

  • Item height - The height of the inserted item in points.
  • Item width - The width of the inserted item in points.
  • Left - Specify in points how far to the right the item should be added.
  • New Shape Name - The new name of the content placeholder where the item was added.
  • Top - Specify in points how far down the item should be added.
  • 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.