Insert picture

Updated at:

This document provides an example of how to use Word components in the visual editor of Alibaba Cloud RPA (Robotic Process Automation).

1. Component introduction

Note

Prerequisite component: Start Word

Use this component to insert a picture into a Word document.

2. Inputs

Note

For information about each input, see the help text in the component pane of the visual editor.

3. Outputs

Note

For information about each output, see the help text in the component pane of the visual editor.

4. Component usage example

4.1. Component configuration example

  1. In Opened Word Object, select v_word_obj_1, which is the output of the Start Word component.

  2. Set Picture Source to Local Picture.

  3. In Picture Path, enter the path to the picture.

  4. In Picture Scaling Percentage, enter 50.

  5. Set Insert Line Break Before to Yes.

  6. Keep the default values for the advanced options.

4.2. Example execution result

None

5. Example flow

Setup flow

  1. Add a Start Word component to the canvas to open a specified Word file.

  2. Add a Position Word Cursor component to the canvas to position the cursor after the first occurrence of "RPA" in the Word file.

  3. Add an Insert Picture component to the canvas to insert a picture into the Word document.

Execution result

The program opens the specified Word file and inserts the picture at the current cursor position.