Skip to main content

Open document

Open a .docx, .doc, .rtf or .odt document, or create a new one, as a named session; can open password-protected .docx files, check the password to edit and open read-only. .doc, .rtf and .odt files are converted with Word or LibreOffice on the runner and saved back in their own format.

Command in the Word toolkit · id ooa.word/open · 7 inputs (1 required), no outputs

Inputs​

InputTypeRequiredDefaultWhat it is
PathFileYesDocument path.
CreateBooleanNofalseCreate the document when it does not exist.
SessionStringNowordSession name.
Read onlyBooleanNofalseOpen for reading only: save over the opened file is refused, save_as to another file still works.
PasswordCredentialNoPassword of an encrypted document; saves keep the file encrypted with it.
Edit passwordCredentialNoPassword to edit a document whose editing is restricted; a wrong one stops the step. Without it such a file still opens.
ShareBooleanNofalseAgents this one runs may use it.