Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

Get slides count Version 1 (Net)

...

Action group: Power Point 

Описание

Действие предназначено для получения количества слайдов в переменную типа "Число"

Иконка действия

Image Removed

Настройки

...

Description

The action is designed to get the number of slides into a variable of type "Number".

Action icon

Image Added

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
The document instanceAn instance of an open PowerPoint document in which the number of slides will be counted

Свойство

Англ. наименование

Описание

Тип

Пример заполненияОбязательность заполнения поляПараметрыЭкземпляр документаDocument InstanceЭкземпляр открытого PowerPoint-документа, в котором будет подсчитано количество слайдов
.Robin.PowerPoint
PowerPointInstance*ДаРезультаты

Yes
Results
ResultVariable in which the number of slides will be written
РезультатResultПеременная, в которую будет записано количество слайдов
.Robin.Numeric

Особые условия использования

Отсутствуют.

Пример использования 

Задача: имеется Power-Point документ. Необходимо посчитать количество слайдов в данном документе, сохранить изменения и закрыть документ. 

Решение:

воспользоваться действиями: Открыть Power-Point документ, Посчитать количество слайдов, Сохранить как, Закрыть Power-Point документ. 

Реализация:

  1. Перетащить на рабочую область действие "Открыть Power-Point документ" и настроить его параметры:

Image Removed

...

2. Перетащить на рабочую область действие "Посчитать количество слайдов" и настроить его параметры:

В поле "Экземпляр документа" указать экземпляр открытого документа, количество слайдов которого нужно посчитать. 



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:

Image Added

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Программный робот отработал успешно. Количество слайдов, содержащихся в документе записано в переменную "Число".