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. | Robin.PowerPoint | Yes | |
Results | ||||
Result | Variable in which the number of slides will be written. | Robin.Numeric |
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".