Skip to content

Word Open (Session)

Type: word-open  ·  Package: Word Activities v1.0.0  ·  Output: ZoanWordSession

Open an existing .docx document and return a session (ZoanWordSession) that you share with other Word activities. Use it when you are going to do several operations on the same document or modify it by adding content.

Open the path file. You have two modes (see session model):

  • With body: activities inside inherit the session automatically; When finished, the document closes (remember to save with Word Save if you modified it).
  • No body: save the session to an output variable; pass it as session to the activities and close it with Word Close.
ParameterEditorDescription
pathexpressionPath of the existing .docx file.

Ninguno.

Activities to be executed with this document. If omitted, returns the session as output.

Returns a ZoanWordSession. Pass it as session to other Word activities.

Word Open path = = asset("contrato.docx")
└─ body:
Word Find & Replace find = "{CLIENTE}" replace = = cliente.nombre
Word Save