WordReplaceBookmarksWithText

Description

This activity replaces a list of bookmarks in a Word document with text. The result of the activity is an IFileValue representing the updated file.


Input

BookmarkValues InArgument<Dictionary<String,String>> REQUIRED

A dictionary representing the names of all bookmarks (as keys), each with its own text which it will be replaced with (as values).

Document InArgument<IFileValue> REQUIRED

The Word document where you want to replace bookmarks.


Misc


Settings

BookmarkValuesAreHTML InArgument<Boolean>

Default is False. Set this property to True if the new texts which will replace the bookmarks are HTML texts.

PreserveBookmarks InArgument<Boolean>

Default is False. Set this property to True if you don't want the activity to delete bookmarks 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 a 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 a 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.