addComment

addComment

BASIC / ADVANCED / PREMIUM

Inserts a comment into the Word document.

Description
public void addComment(OptionsComment options)

This method allows the insertion of a Word comment into the current Word document.

Parameters

options

Option Type Description
textDocument OptionsText WordFragment that will appear in the Word document.
textComment WordFragment This is the content that will show up in the corresponding footnote.
initials String The initial that will be shown in the comment balloon.
author String The name of the author of the comments.
date String A date string as the ones used for the strtotime Java method.
Code samples

Example #1

The resulting Word document looks like: