activities
latest
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

生产力活动

上次更新日期 2026年2月19日

向幻灯片添加图像/视频

UiPath.Presentations.Activities.ReplaceShapeWithMedia

将占位符替换为名称相同的媒体元素。用于用媒体文件填充新插入的幻灯片中的占位符,或用于替换现有演示文稿中的媒体文件。此活动必须添加到使用 PowerPoint 演示文稿活动中。

配置活动

在活动正文中
  • 演示文稿- 单击字段右侧的加号,然后选择要插入媒体文件的演示文稿文件。
  • 幻灯片编号- 单击字段右侧的加号,然后选择要插入媒体文件的演示文稿文件和幻灯片。

或者,也可以使用菜单中的另一个选项来指定幻灯片编号:

  • 项目笔记本或父级 Excel 文件中的数据。例如,在 Excel 文件中选择一个单元格以使用该单元格中的值。
  • 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.
  • 内容占位符- 单击字段右侧的加号,然后选择演示文稿文件、幻灯片,然后选择要在其中插入媒体的占位符的名称。

或者,也可以使用菜单中的另一个选项来指定占位符名称:

  • 项目笔记本、父级 Excel 文件或 Outlook 帐户中的数据。例如,在 Excel 文件中选择一个单元格以使用该单元格中的值。
  • “运行时询问”- 执行项目时提示输入名称。
  • “从剪贴板粘贴” - 将您以前复制的值粘贴到项目中的剪贴板中。
  • “文本”- 在文本生成器中输入名称。
  • Use Saved Value - Select a value that you previously saved for later use in the project.
  • Open in Advanced Editor - Enter a VB expression.
  • 图像/视频文件- 单击字段旁边的浏览,然后浏览并选择要添加的图像、视频或音频文件。

或者,也可以使用菜单中的另一个选项来指定要添加的文件的路径:

  • 项目笔记本、父级 Excel 文件或 Outlook 帐户中的数据。例如,在 Excel 文件中选择包含文件路径的单元格。
  • 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.
属性面板

常见

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

输入

  • 请在活动正文中查看选项。

其他

  • 私有 - 选中后将不再以“Verbose”级别记录变量和参数的值。

选项

  • 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.
  • 配置活动

此页面有帮助吗?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath Logo
信任与安全
© 2005-2026 UiPath。保留所有权利。