Open document Version 9 (Net)
Action group: Word
Description
The action opens the Word-document
Action icon
Parameters
Input parameters
Parameter | Description |
---|---|
Path to file | Path to the file to be opened. |
Visible | Specify if the document needs to be opened with the Word interface. Otherwise the document will be opened in the background. |
Password | Password from the protected document. |
Output parameters
Result
Context - a unique ID of the open session.
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Path to file | Path to the document | Robin.FilePath | Yes | |
Visible | If true the document will be opened with Word interface | Robin.Boolean | true | No |
Results | ||||
Context | Unique ID of the session to which the action will be applied. | Robin.Word | Word context |
Special conditions of use
Открываемый файл может быть любого формата, приведенного в таблице.
При открывании файла действием "Открыть" необходимо также, как и в обычном текстовом редакторе, подтвердить преобразование файла любого формата в файл Word, после этого действие робот откроет указанный вами файл.
Если на документе установлен пароль, необходимо ввести его в параметре "Пароль". При указании неверного пароля робот выдаст ошибку. Если параметр "Пароль" не заполнен, а на документе установлен пароль, то робот выдаст ошибку.
Example of use
Task
There is a file test (2).docx. Open the document and add a text to it = "Text" to the start of the document. Next, save the document and close it.
Solution
Use the "Open document", "Enter 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 "Add text to" field specify value "Start of the document".- Move the "Save as" action to the workspace and set its parameter.
In the "Context" field specify the open document context. - Move the "Close action" to the workspace and set its parameter.
- Click "Start" in the top panel.
Result
The program robot completed successfully. The desired text was added to the document. The file was saved and closed.