Insert image Version 3 (Net)

Action group: Power Point 


Description

The action is designed to insert an image into a placeholder on a slide

Action icon

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
The document instanceAn instance of an open PowerPoint document where you want to insert an image.Robin.PowerPoint
Yes
Slide numberNumber of the slide where you need to add the image.Robin.Numeric
Yes
ImageImage to be added to the shape.Robin.ImageC:\doc\img.pngYes
CoordinatesCoordinates of the point, where the image will be added.Robin.LocationPo int
Yes
WidthWidth of the image to be added.Robin.Numeric
No
HeightHeight of the image 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 an image into it, save the changes and close the document. 

Solution

Use the following actions: Open PowerPoint document, Insert image, 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 image" 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 the image. 
    In the "Slide number" field specify the value 1. 
    In the "Image" field, specify the path to the image on the computer or a variable with the "Image" type. 
    In the "Coordinates" field, specify the coordinates of the point where the image will be inserted. 
  3. Move the "Save as" action to the workspace and customize its settings:
    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 customize 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 picture has been added to the slide. 


  • Нет меток