Insert table Version 1 (Net)
Action group: Word
Description
The action inserts the completed table into the specified area of the Word-document
The Word-document, the table for insertion and the insertion location are specified. It is also possible to move a table with or without a header
Action icon
Parameters
Input parameters
Parameter | Description |
---|---|
Context | The context of an open Word-document. You can open a Word-document using the "Open document" action ("Word" action group). |
Table | Table to insert. |
Heading | Parameter that helps to insert the table with or without the heading. |
Place of addition | A place in the document where to insert the table. There are three options available: Beginning, End, After bookmark. |
Bookmark name | A name of the bookmark after which the table is to be inserted. The parameter is taken into account if the "Place of addition" parameter is set to "After bookmark". |
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Context | The Word document instance to which the action will be applied. | Robin.Word | Word context | Yes |
Table | The table to be inserted into the Word document. | Robin.DataTable | Yes | |
Heading | If the value is «true», the table header will be inserted into the document along with its rows. | Robin.Boolean | true | No |
Place of addition | The location in the document where the table will be inserted. | Robin.String | Yes | |
Bookmark name | The name of the bookmark after which the table will be inserted. | Robin.String | No |
Special conditions of use
If you have selected a place of addition after the bookmark, then you must specify the name of the bookmark. Otherwise, the robot will return an error.
If the bookmark name is specified, but another place of addition is selected, the action will ignore the bookmark name parameter.
If the place of addition after the bookmark is selected, but there are no bookmarks in the document, the robot will return an error.
The action does not work with locked fields in protected documents. In this case, the robot will return an error.
Example of use
Task
You have a Word-document. Insert a table after the bookmark.
Document:
Solution
Use the "Open document", "Insert table", "Save as", "Close document" actions.
Implementation
- Assemble a robot scheme with the actions.
- Set the "Open document" action parameters. In the "Path to file" field specify the path to the Word-document file. In the "Visible" field check the checkbox = true.
- Set the "Insert table" action parameters. In the "Context" field specify the Word-document instance where the table is to be inserted. In the "Table" field specify the table for insertion. In the "Heading" field check the checkbox = true. In the "Place of addition" field specify "After bookmark". In the "Bookmark name" specify the name of the existing bookmark after which the table will be inserted.
- Set the "Save as" action parameters. In the "Context field" specify the Word-document instance to be saved.
- Set the "Close document" action parameters. In the "Context" field specify the Word-document instance to be closed.
- Click "Start" in the top panel to start the robot.
Result
The program robot completed successfully. The table was inserted in the desired place.
Word-document: