Action group: Word
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
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". |
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 |
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.
You have a Word-document. Insert a table after the bookmark.
Document:
Solution
Use the "Open document", "Insert table", "Save as", "Close document" actions.
The program robot completed successfully. The table was inserted in the desired place.
Word-document: