История страницы
...
Save as Version 12 (Net)
Группа действийAction group: Word
Описание
Сохраняет Word-документ.
Иконка
Параметры
Входные параметры
Word-документ Экземпляр Word-документа.
Путь сохранения Путь к папке, в которую будет сохранен документ. Если поле остается пустым, то файл сохраняется в той же папке, из которой был открыт исходный файл. Например C:\doc\img.
Имя Наименование нового документа, который будет создан. Если данное поле остается пустым, то файл сохраняется с тем же именем, который документ имел при открытии. Например: Новый_документ.
Формат Формат, в котором будет сохранен документ. Если данное поле остается пустым, то файл сохраняется в том же формате, который документ имел при открытии. Например: .docx.
Выходные параметры
Результат Полный путь к сохраненному документу.
Настройки
...
Description
The action saves a Word-document
Action icon
Settings of parameters
Parameter | Description |
---|---|
Word-document | Word-document instance. |
Path to save | Path to the folder where the document will be saved. If the field is empty, the file is saved in the same folder from which the original file was opened. For example, C:Doc/img. |
Name | The name of the new document to be created. If this field is left empty, the file is saved with the same name that the document had when it was opened. For example: New_document. |
Format | The format in which the document will be saved. If this field is left blank, the file is saved in the same format that the document had when it was opened. For example: .docx. |
Output parameters
Result - the full path to the saved document.
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Word-document | An instance of the Word document. | Robin.Word | Word context | Yes |
Path to save | The path to the folder where the document will be saved. If the field is left blank, the file is saved in the same folder from which the original file was opened |
Свойство
Описание
Тип
Пример заполнения
Обязательность заполнения поля
Параметры
Word-документ
Экземпляр Word-документа.
Robin.Word
Контекст Word
Да
Путь сохранения
. | Robin.FolderPath | C:\doc\img |
No |
Имя
Name | The name of the new document to be created. If this field is left blank, then the file is saved with the same name that the document had when it was opened. | Robin.String |
No |
Формат
Format | Format of document to save. If this field is empty, the file will be saved in the format the document had when it was opened. | Robin.String |
No |
Results |
Результат
Result | Full path to the saved document. | Robin.FilePath |
Особые условия использования
Отсутствуют.
Пример использования
Задача
Special conditions of use
None.
Example of use
Task
There is a file test Существует файл test (2).docx. Необходимо открыть документ и добавить туда запись = "тестовая запись" в начало документа. Далее, сохранить документ и закрыть.
Решение
Воспользоваться действием "Открыть", "Ввести текст", "Сохранить как", "Закрыть".
Реализация
Open the document and add an entry = "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 Собрать схему робота, состоящую из действий:
Заполнить параметры для действия "Открыть".
В поле "Путь к файлу" указать путь к файлу 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 context of the open document. - Move the "Close document" 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.