Action group: Office
The action replaces an image with another image
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Context | Context for working with a document | Robin.OpenTextDo c | Yes | |
Replace | The image in the document to be replaced. The order starts from 1. The default value is 1 | Robin.Numeric | Yes | |
On | New image | Robin.FilePath | Yes | |
Width | The width of the image to be added | Robin.Numeric | No | |
Height | The height of the image to be added. Ignored if the «Width» parameter is not specified | Robin.Numeric | No |
None.
There is a file test.docx with an image.
It is necessary to open the document and replace the image (the first one) with another one. Then, save the document and close it.
Use the "Open", "Replace image", "Save", "Close" actions.
The program robot completed successfully.
The required image was replaced in the text with another image. The file is saved and closed.