Insert data table Version 1 (Python)
Action group: Office
Description
The action adds a data table to 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 | |
Table | Variable of type Data Table with data | Robin.DataTable | Yes | |
Add text to | Location in document where table should be inserted to | Robin.String | Yes | |
Bookmark name | The name of the bookmark after which the table will be added | Robin.String | No |
Special conditions of use
None.
Example of use
Task
There is a file test.docx. It is necessary to open the document and insert a table with data (the data is written to the variable "Table"). Then, save the document and close it.
Solution
Use the "Open", "Insert data table", "Save", "Close" actions.
Implementation
- Assemble a robot scheme consisting of actions:
- Fill in the "Open" action parameter.
In the "Path to file" field specify the path to the file test.docx - Set the parameters for the "Insert data table" action:
In the "Context" field specify the context created in step 1
In the "Table" field specify a variable of the "table" type containing the table with data.
In the "Add text to" field specify the value "End of the document". - Set the parameter for the "Save" action.
In the "Context" field specify the context of the opened 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 table is added to the document. The file is saved and closed.
Обзор
Инструменты контента