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

生产力活动

将 Excel 文件保存为 PDF 格式

UiPath.Excel.Activities.Business.SaveAsPdfX

描述

将 Excel workbook 保存为 PDF 文件。该活动可以与为父级使用 Excel 文件活动选择的 Excel 文件一起使用,也可以与“项目笔记本”一起使用。

配置活动

设计器面板

  • Workbook - Select Plus on the right side of the field and then, from the menu, select the Excel workbook to save as PDF. Alternatively, you can select Open in Advanced Editor and enter a VB expression.

  • Save as file - Select Browse next to the field, and then browse to the folder where to create the file and enter the file name. Alternatively, you can indicate the full path of the file to create by using one of the options in the Plus menu on the right side of the field:

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

如果指定位置中已存在同名文件,则该文件将被覆盖。如果仅指定文件名称,则系统会在项目文件夹中创建 PDF 文件。

属性面板

常见
  • DisplayName - The name displayed for the activity in the Designer panel.
文件
  • 目标 PDF 路径- 请在活动主体中查看保存为文件
输入
  • “结束页”- 指定要包含在 PDF 中的最后一页的页码(可选)。如果未指定页码,则系统会将文件保存到最后一页。
  • “保存质量”- 选择保存文件的质量,可以是“标准质量”(针对在线发布和打印进行优化),也可以是“最低质量”(针对在线发布进行优化)。默认选项为“标准质量”。
  • “起始页”- 输入要包含在 PDF 中的第一页的页码(可选)。如果未指定页码,则系统会从第一页开始保存文件。
  • workbook- 请在活动主体中查看workbook
其他
  • 私有 - 选中后将不再以“Verbose”级别记录变量和参数的值。
  • 描述
  • 配置活动
  • 设计器面板
  • 属性面板

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新