История страницы
...
Adds text to the document.
Action icon
Parameters
Input parameters
Context - Unique identifier of the session to which the action will be applied.
Text - The text to be added to the Word document.
Add text to - The location in the document where the text will be added.
A dropdown list is available:
- Start of the document
- End of the document
- After the bookmark
Bookmark name - The name of the bookmark after which the text should be entered. It is assumed that the field will become available after selecting the "After the bookmark" value in the "Add text to" parameter
On a new line - The text will be added from a new line.
Output parameters
Result
The required text is added to the document. The file is saved and closed.
...
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
---|---|---|---|---|
Parameters | ||||
Context | Unique ID of the session to which the action will be applied. | Robin.Word | Word context | Yes |
Text | Text to be added to the document | Robin.String | Yes | |
Add text to | Location in document where text should be inserted to | Robin.String | Yes | |
Bookmark name | The name of the bookmark after which the text will be added | Robin.String | No | |
On a new line | If the parameter value is true, then the specified text will be added on a new line, and the subsequent text in the document will be transferred to a new line. The default is false. | Robin.Boolean | true | No |
...
- Assemble a robot scheme consisting of actions:
- Fill in the parameters for the "Open document" action.
In the "Path to file" field specify the path to the file test (2).docx - Fill in the parameters for the "Enter text" action.
In the "Context" field specify the context created in step 1.
In the "Text" field specify the value "test record".
In the "Add text to" field, specify the value "Start of Document". - Move the "Save As" action to the workspace and fill its parameter. In the "Context" field, specify the context of the open document.
- Move the "Close document" action to the workspace and fill in its parameter.
- Click on the "Start" button in the top panel.
Result
The program robot completed successfully. The required text is added to the document. The file is saved and closed.
...
Обзор
Инструменты контента