Replace Text (Docx)#

Perform text replacement in a Docx file.

Input File[Text] The input Docx file where text replacement needs to be performed.
Output File

[Text] The file with the result of the replacement.

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

Search Text[Text] The text that needs to be attempted to find in the document.
New Text[Text] The text that needs to be inserted into the document instead of the found fragment.
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 from 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 from 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.