История страницы
...
Get slides count
...
Действие предназначено для получения количества слайдов в переменную типа "Число".
Настройки
Version 1 (Net)
Action group: Power Point
...
Description
The action is designed to get the number of slides into a variable of type "Number".
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
The document instance | An instance of an open PowerPoint document in which the number of slides will be counted |
Свойство
Англ. наименование
Описание
Тип
Document Instance
. | Robin.PowerPoint |
Yes |
Results |
Result | Variable in which the number of slides will be written |
. | Robin.Numeric |
Особые условия использования
Отсутствуют.
Пример использования
Задача: имеется Power-Point документ. Необходимо посчитать количество слайдов в данном документе, сохранить изменения и закрыть документ.
Решение:
воспользоваться действиями: Открыть Power-Point документ, Посчитать количество слайдов, Сохранить как, Закрыть Power-Point документ.
Реализация:
- Перетащить на рабочую область действие "Открыть Power-Point документ" и настроить его параметры:
...
Special conditions of use
None.
Example of use
Task
There is a PowerPoint document. You need to count the number of slides in this document, save the changes and close the document.
Solution
Use the following actions: Open Power-Point document, Get slides count, Save as, Close Power-Point document.
Implementation
1. Move the Open Power-Point Document action to the workspace and set its parameters:
In the "Path to file" field specify the path to the PowerPoint document file.
In the "Visible" field set checkbox = true.
2. Move the "Get slides count" action to the workspace and set its parameters:
In the "The document instance" field, specify the instance of the open document whose number of slides you want to count.
In the "Result" field, specify the variable "Number", which will contain the number of slides in the document.
3.Move the "Save as" action to the workspace and set its parameters:
In the "The document instance" field, specify the instance of the open document to be saved.
4. Move the "Close" action to the working area and set its parameters:
In the "The document instance" field, specify the instance of the open document to be closed.
5. Start the robot using the "Start" button in the top panel.
Result
The program robot completed successfully. The number of slides contained in the document is written to the variable "Number".
2. Перетащить на рабочую область действие "Посчитать количество слайдов" и настроить его параметры:
В поле "Экземпляр документа" указать экземпляр открытого документа, количество слайдов которого нужно посчитать.
В поле "Результат" указать переменную "Число", в которую будет записано количество слайдов в документе.
3. Перетащить на рабочую область действие "Сохранить как" и настроить его параметры:
В поле "Экземпляр документа" указать экземпляр открытого документа, который нужно сохранить.
В поле "Экземпляр документа" указать экземпляр открытого документа, который нужно закрыть.
5. Запустить робота по кнопке "Старт" в верхней панели.
Результат:
Программный робот отработал успешно. Количество слайдов, содержащихся в документе записано в переменную "Число".