Close Version 1 (Python)
Action group: Office
Description
The action closes the document
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Context | Context for working with a document | Robin.OpenTextDo c | Yes |
Special conditions of use
None.
Example of use
Task
There is a file test (2).docx. You need to add a record = “test record” to the beginning of the document. Then, save the document and close it.
Solution
Use the "Open", "Enter text", "Save", "Close" actions.
Implementation
- Move the "Open" action to the workspace and set its parameters.
In the "Path to file" field specify the path to file test (2).docx.
- Move the "Enter text" action to the workspace and set its parameters.
In the "Context" field specify the context created in section 1.
In the "Text" field, specify the value "Text".
In the "Add text to" specify the value "Start of the document". - Move the "Save" action to the workspace and set its parameter.
In the context field specify the context of the open document. - Move the "Close" action to the workspace and set its parameter.
- Click "Start" in the top panel.
Result
The program robot completed successfully.
The needed text was added to the document. The file was saved and closed.
Обзор
Инструменты контента