Position the cursor in a Word document
This document describes how to use the Word component in the visual editor of Alibaba Cloud RPA.
1. Component overview
Prerequisite: The Launch Word component.
Use this component to position the cursor relative to specific text in a Word document.
2. Inputs
For details about each input parameter, see the help information in the component panel of the visual editor.
3. Outputs
For details about each output parameter, see the help information in the component panel of the visual editor.
4. Component usage example
4.1. Component configuration example
For
Opened Word Object, select v_word_obj_1, which is the output of the prerequisite Launch Word component.For
Relative To, select 'Text Content'.In the
Text Contentfield, enter the text to locate, such as 'RPA'.For
Text Occurrence, the default value is '1'.For
Position Cursor To, select 'After Text'.Keep the default values for the advanced options.
4.2. Example execution result
None
5. Flow creation example
Setup flow
Add a Launch Word component to the canvas to open a specified Word file.
Add a Position Word Cursor component to the canvas to position the cursor after the first occurrence of the text 'RPA' in the Word file.
Execution result
The program opens the specified Word file and then positions the cursor after the text 'RPA' in the file.