Replace All Variables in Docx Text#

Perform the replacement of all variables in a Docx file.

Input File[Text] Input docx file where text replacement is required.
Output File

[Text] File with the result of the replacement.

If the value is empty, the result will be saved to the input file.

Dictionary

[Dictionary] Dictionary for replacement.

The keys of the dictionary are the variables to be replaced in the format "%key%".

If the value is empty, the global variables dictionary of the entire project will be used.

Result[Text] Returns the full path to the file with the result of the replacement.
Error Handling Level

Select the error handling level. Possible values:

  • "Default" - default;
  • "Ignore" - errors are ignored;
  • "Handle" - errors are handled.

If "Default" is selected, the value of the "Start" block of this diagram will be used.

Message Level

Select the message level that blocks will output during operation. Possible values:

  • "Default" - default;
  • "Release" - output is disabled;
  • "Debug" - main information output;
  • "Detailed" - detailed information output.

If "Default" is selected, the value of the "Start" block of this diagram will be used.

Error Text[Text] Returns detailed information about the error in case of incorrect execution of the block's work.