Get text Version 11 (Net)
Action group: Word
Description
The action saves the document to a variable
Action icon
Settings of parameters
Parameter | Description |
---|---|
Context name | A unique session ID to which the action will be applied. |
Output parameters
Result - a variable to which the document text will be written to.
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Context | Unique ID of the session to which the action will be applied. | Robin.Word | Word context | Yes |
Results | ||||
Result | The variable to which the text of the document will be written | Robin.String |
Special conditions of use
Tables present in the document will be taken in text form with \r separator between cells.
Example of use
Task
There is a file test (2).docx. with name entries. Get the text of the document into a variable of type "String". Next, save the document and close it.
Solution
Use the "Open document", "Get text", "Save as", "Close document" actions.
Implementation
- Assemble a robot scheme with the actions.
- Set the "Open document" action parameters.
In the "Path to file" field specify the path to the file test (2).docx - Set the "Get text" action parameters.
In the "Context" field specify the context created in section 1.
In the "Result" field specify the text variable created beforehand. - Set the "Save as" action parameter.
In the "Context" field specify the context of the open document. - Set the "Close document" action parameters.
- Click "Start" in the top panel.
Result
The program robot completed successfully. The text from the document was saved to a text variable. The file was saved and closed.
Обзор
Инструменты контента