Get text Version 11 (Net)
Action group: Word
Description
The action saves the document to a variable.
Action icon
Action parameters
Input 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
Свойство | Англ. наименование | Описание | Тип | Пример заполнения | Обязательность заполнения поля |
---|---|---|---|---|---|
Параметры | |||||
Контекст | Context name | Уникальный идентификатор сеанса, к которому будет применено действие. | Идентификатор контекста Word | WordInstance* | Да |
Результаты | |||||
Результат | Result | Переменная, в которую будет записан текст документа. | Строка | Текст_Word | Да |
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
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.
Обзор
Инструменты контента