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

生产力活动

导出为 CSV

UiPath.Excel.Activities.Business.ExportExcelToCsvX

描述

将 Excel 范围、表格或工作表中的数据导出到指定的 CSV 文件。如果 CSV 文件不存在,则系统会在执行自动化时创建该文件。如果文件已存在,则系统会将其替换为自动化。

导出数据时,列标题将按以下方式导出:

  • 对表格而言,如果标头在 Excel 中可见,则将其导出。
  • 对数据透视表而言,如果标头和汇总行在 Excel 中可见,则将其导出。
  • 对工作表和范围而言,仅导出在 Excel 中可见的数据,默认情况下不会添加标头。

配置活动

设计器面板

  • Write to what file - Select Browse next to the field, and then browse to and select the CSV file where to export the data. To create a new file when the automation is executed, browse to the folder where to create it and enter the file name. Alternatively, you can select Plus on the right side of the field and select one of the available options to indicate the path of the file:

    • Excel 或 Outlook 数据。例如,您可以选择包含文件路径的单元格。
    • Use Saved Value - Select a value in the form of a file path that you previously saved for later use in the project.
    • “文本”- 在文本生成器中输入文件路径。您可以将文本与 Excel 文件单元格中的公式结合使用,例如,使用“项目笔记本”中的公式为文件名添加日期。
    • Ask when run - Prompt for a file path when the project is executed.
    • Open in Advanced Editor - Enter a VB expression.
  • Write from - Select Plus on the right side of the field, and then use one of the options in the menu to indicate the data to export:

    • 如果该活动在“遍历 Excel 中的每一行”活动中,您可以选择“当前行”以在迭代中复制当前行的数据。
    • 选择一个 Excel 文件,然后选择指定的范围、表格或工作表,或者在 Excel 中指定一个范围。
    • “使用保存的值”- 选择您先前在项目中保存以备后用的表格值。
    • Open in Advanced Editor - Enter a VB expression.

属性面板

常见
  • DisplayName - The name displayed for the activity in the Designer panel.
文件
  • “文件路径” - 请在活动主体中查看“写入某个文件”
输入
  • “数据表” - 请在活动主体中查看“写入来源”
其他
  • 私有 - 选中后将不再以“Verbose”级别记录变量和参数的值。
  • 描述
  • 配置活动
  • 设计器面板
  • 属性面板

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新