История страницы
...
Insert table Version 1 (Net)
Группа действийAction group: Word
Описание
Действие вставляет готовую таблицу в указанную область Word-документа.
Указывается Word-документ, таблица для вставки и место вставки. Также есть возможность перенести таблицу с заголовком или без.
Иконка
Параметры
Входные параметры
- Контекст - контекст открытого Word-документа. Открыть Word-документ можно с помощью с действия "Открыть" (группа "Word").
- Таблица - таблица, которую необходимо вставить.
- С заголовком - параметр, с помощью которого можно вставить таблицу с заголовком или без.
- Место вставки - место в документе, куда необходимо вставить таблицу. Доступно 3 варианта: Начало документа, Конец документа, После закладки.
- Название закладки - название закладки, после которой необходимо вставить таблицу. Параметр учитывается, если заполнен параметр "Место вставки" - После закладки.
Настройки
...
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 |
Свойство
Описание
Тип
Пример заполнения
Обязательность
заполнения поля
Параметры
Контекст
Экземпляр Word-документа, к которому будет применено действие.
Robin.Word
Контекст Word-документа
Да
Таблица
Таблица, которая будет вставлена в Word-документ.
Robin.DataTable
Да
. | 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 |
Особые условия использования
Если выбрано место добавления после закладки, то необходимо указать имя закладки. Иначе робот выдаст ошибку.
Если указано имя закладки, но выбрано другое место добавления, то действие будет игнорировать параметр имени закладки.
Если выбрано место добавления после закладки, но в документе отсутствуют какие-либо закладки, то робот выдаст ошибку.
Действие не работает с заблокированными полями в защищенных документах. В этом случае робот выдаст ошибку.
Пример использования
Задача
Имеется Word-документ. Необходимо вставить таблицу после закладки.
Документ:
Решение
Воспользоваться действиями "Открыть", "Вставить таблицу", "Сохранить как", "Закрыть".
Реализация
- Собрать схему робота, состоящую из действий:
- Настроить параметры действия "Открыть". В поле "Путь к файлу" указать путь к файлу Word-документа. В поле "Видимый" проставить чекбокс = true.
- Настроить параметры действия "Вставить таблицу". В поле "Контекст" указать экземпляр Word-документа, в котором необходимо вставить таблицу. В поле "Таблица" указать таблицу для вставки. В поле "С заголовком" указать чекбокс = true. В поле "Место добавления" указать "После закладки". В поле "Название закладки" указать имя существующей закладки после которой будет вставлена таблица.
- Настроить параметры действия "Сохранить как". В поле "Контекст" указать экземпляр Word-документа, который нужно сохранить.
- Настроить параметры действия "Закрыть". В поле "Контекст" указать экземпляр Word-документа, который нужно закрыть.
- Запустить робота по кнопке "Старт" в верхней панели.
Результат
Программный робот отработал успешно. Изображение вставилось в указанное место.
Word-документ:
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: