WordReplaceBookmarkWithDocument

Description

This activity replaces a specific bookmark in a Word document with a given document. The result of the activity is the updated file.


Input

BookmarkName InArgument<String> REQUIRED

The name of the bookmark to be replaced.

Document InArgument<IFileValue> REQUIRED

The Word document where you want to replace bookmark.

ReplacementDocument InArgument<IFileValue> REQUIRED

The document to replace the bookmark.


Misc


Settings

InsertPageBreakAfter InArgument<Boolean>

Default is False. Set this property to True if yoy want to insert a page break after the inserted document.

InsertPageBreakBefore InArgument<Boolean>

Default is False. Set this property to True if yoy want to insert a page break before the inserted document.

PreserveBookmark InArgument<Boolean>

Default is False. Set this property to True if you don't want the activity to delete the bookmark when replaced.

ThrowIfBookmarkNotFound InArgument<Boolean>

Default is True. Set this property to False if you don't want the activity to throw an exception when the bookmark is not found.

ThrowIfBookmarkNotSet InArgument<Boolean>

Default is True. Set this property to False if you don't want the activity to throw an exception when the bookmark is not been replaced. Set this property to False whenever you don't want to replace all bookmarks in a document because otherwise the activity will throw an exception if a value is not provided for each bookmark in the Word file. Set it to True if you want instead to check if all bookmarks are replaced.