Open Version 2 (Python)

Action group: Office 


Description

The action opens the document. 

Action icon

Settings

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
PathToFileThe path to the file to be opened.Robin.FilePath
Yes
Results
ContextAction context for ods/xlsx documentRobin.OpenSheetD oc

Special conditions of use

None.

Example of use

Task

You have a file test (2).docx. Open the document and add text to it = "test text" to the beginning of the document. Next, save the document and close it.

Solution

Use the "Open", "Input text", "Save", "Close" actions.

Implementation

  1. Move the "Open" action to the workspace and set its parameters.
    In the "Path to file" field specify the path to file test (2).docx.



  2. Move the "Input text" action to the workspace and set its parameters.
    In the "Context" field specify the context created in section 1.
    In the Text field, specify the value "test record".
    In the "Add text to" specify the value "Start of document". 

  3. Move the "Save" action to the workspace and set its parameter.
    In the context field specify the context of the open document.

  4. Move the "Close" action to the workspace and set its parameter.


  5. Click "Start" in the top panel.

Result

The program robot completed successfully. The needed text was added to the document. The file was saved and closed.

  • Нет меток