订阅

UiPath 活动

UiPath 活动指南

Word Application Scope / Use Word File

UiPath.Word.Activities.WordApplicationScope

In the Studio profile, this activity is named Word Application Scope.

描述

打开 Word 文档并为其他 Word 活动提供作用域。此活动结束时,文档和 Word 应用程序将会关闭。如果指定的文件不存在,则会创建新的文档文件。仅当您的机器上已安装 Microsoft Word 应用程序时,才能使用该活动。

属性

File

  • File path - The full path of the Word file to be used. If the Word file to be used is located in the project folder, its relative path can be used. Only String variables and strings are supported.

Note:

必须为字符串加上引号。

Common

  • DisplayName - The display name of the activity.

Misc

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

选项

  • Auto save - If selected, the document is saved on each change caused by an activity. If not selected, the changes are saved only after all the activities added inside Word Application Scope are executed. This option is selected by default.
  • Create if not exists - If selected, a new Word document is created if the file is not found at the specified path. If not selected, an error occurs if the file is not found at the specified path. This option is selected by default.

UiPath.Word.Activities.WordApplicationScope

In the StudioX profile, this activity is named Use Word File.

描述

Lets you select a Word document to use in the automation. After you add the activity and indicate the file, add the Word activities to perform on the file inside this activity. If the specified file does not exist, the file is created when the project is executed. When this activity ends, the document and the Word application are closed.

If the activity is added inside a Use Excel File, Use Outlook 365, Use Gmail, or Use Desktop Outlook App activity, you can select data from that Excel file or email account when configuring the activities added inside Use Word File.

To learn how to use this activity:

配置活动

In the Body of the Activity

  • Word file - Click Browse browse files next to the field, and then browse to and select a Word document. Alternatively, you can provide the file path using one of the options in the Plus plus button menu on the right side of the field. For example, select a cell in the Project Notebook that contains a path to a Word document or select Ask when run to enter a path manually when the project is executed. You can also input the SharePoint URL of a word file.
  • Auto save - If selected, the document is saved on each change caused by an activity. If not selected, the changes are saved only after all the activities added inside Use Word File are executed. This option is selected by default.
  • Create if not exists - If selected, a new Word document is created if the file is not found at the specified path. If not selected, an error occurs if the file is not found at the specified path. This option is selected by default.

In the Properties Panel

Common

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

File

Misc

  • Private - If selected, the data used in the activity is not logged by StudioX.

2 个月前更新


Word Application Scope / Use Word File


建议的编辑仅限用于 API 参考页面

You can only suggest edits to Markdown body content, but not to the API spec.