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

ParameterDescription
ContextThe context of an open Word-document. You can open a Word-document using the "Open document" action ("Word" action group).
TableTable to insert.
HeadingParameter that helps to insert the table with or without the heading.
Place of additionA place in the document where to insert the table. There are three options available: Beginning, End, After bookmark. 
Bookmark nameA 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

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
ContextThe Word document instance to which the action will be applied.Robin.WordWord contextYes
TableThe table to be inserted into the Word document.Robin.DataTable
Yes
HeadingIf the value is «true», the table header will be inserted into the document along with its rows.Robin.BooleantrueNo
Place of additionThe location in the document where the table will be inserted.Robin.String
Yes
Bookmark nameThe 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

  1. Assemble a robot scheme with the actions.

  2. 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.

  3. 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.

  4. Set the "Save as" action parameters. In the "Context field" specify the Word-document instance to be saved.

  5. Set the "Close document" action parameters. In the "Context" field specify the Word-document instance to be closed.

  6. 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:



  • Нет меток