Action group: Word
Adds text to the document.
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 |
Text | Text to be added to the document | Robin.String | Yes | |
Add text to | Location in document where text should be inserted to | Robin.String | Yes | |
Bookmark name | The name of the bookmark after which the text will be added | Robin.String | No | |
On a new line | If the parameter value is true, then the specified text will be added on a new line, and the subsequent text in the document will be transferred to a new line. The default is false. | Robin.Boolean | true | No |
In protected documents, the action inserts text only into unblocked fields. To do this, set a bookmark before the unlocked field using the "Create bookmark" action, then in the "Enter text" action specify "After bookmark" in the "Add location" parameter and specify the name of the bookmark in the "Bookmark name" parameter. Thus, the text will be entered in the first unblocked field after the specified bookmark.
There is a file test (2).docx. You need to open the document and add a record = "test record" to the beginning of the document. Then, save the document and close it.
Use the action "Open document", "Enter text", "Save as", "Close document".
Implementation
The program robot completed successfully. The required text is added to the document. The file is saved and closed.