Insert a file as an icon Version 3 (Net)
Action group: Power Point
Description
The action inserts the file from the disk into the slide as an icon.
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
The document instance | An instance of an open PowerPoint document where the file is to be added. | Robin.PowerPoint | Yes | |
File path | Path to the file to be inserted into the slide. | Robin.FilePath | Yes | |
Slide number | Number of the slide where you need to add the file. | Robin.Numeric | Yes | |
Coordinates | Coordinates of the point, where the file will be added. | Robin.LocationPo int | Yes | |
Width | Width of the icon to be added. | Robin.Numeric | No | |
Height | Height of the icon to be added. It is not taken into account if the «Width» parameter is not specified. | Robin.Numeric | No |
Special conditions of use
None.
Example of use
Task
There is a PowerPoint document. You need to insert a Word document file as an icon on a slide, save the changes and close the document.
Solution
Use the following actions: Open PowerPoint document, Insert a file as an icon, Save as, Close PowerPoint document.
Implementation
1. Move the Open PowerPoint 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 "Insert a file as an icon" action to the workspace and set its parameters:
In the "The document instance" field, specify the instance of the open document where you want to Insert a file as an icon.
In the "Path to file" field, specify the path to the file that will be displayed as an icon on the slide.
In the "Slide number" field specify the value 1.
In the "Coordinates" field, specify the coordinates of the point where the icon will be inserted.
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 workspace and set its parameters:
In the "The document instance" field, specify the instance of the open document to be closed.
5. Launch the robot using the "Start" button in the top panel.
Result
The program robot completed successfully. The file as an icon is inserted on the slide.