Save Version 1 (Python)
Action group: Office
Description
The action saves the changes in the existing document.
Settings
Property | Description | Type | Filling example | Mandatory field |
---|---|---|---|---|
Parameters | ||||
Context | Context for working with a document | Robin.OpenTextDo c | Yes | |
Folder path | Path to the folder where the document is to be saved | Robin.FolderPath | C:\doc\img | No |
File name | The name of the new file that will be created based on the original one. | Robin.String | No | |
Results | ||||
Path to file | Full path to the saved file. | Robin.FilePath |
Special conditions of use
None.
Example of use
Task
There is a File called book1.xlsx. Set the value in cell A3=test 4 and save the document.
Solution
Use the "Open", "Set cell value" and "Save" actions.
Implementation
- Move the "Open" action to the workspace and fill in its parameters
In the "PathToFile" field set the path to the file book1.xlsx - Move the "Set cell value" action to the workspace and fill in its parameters:
- In the "Context" field set the created context in step 1
- In the "Column of the cell" field, set the value = A.
- In the "Row of the cell" field, set the value = 3.
- In the "Value" field, specify the set = text 4.
- Move the "Save" action to the workspace and fill in its parameters
In the "Context" field set the context of the opened document. Click the "Start" button in the top panel.
Result
The program robot completed successfully. The required value is set in cell A3. The file is saved.
Обзор
Инструменты контента