false);
wordDocBuilder.writeln();
// Add a table
wordDocBuilder.startTable();
// --Row 1 with 2 cell
Cell cell = wordDocBuilder.insertCell();
cell.getCellFormat().setVerticalAlignment(
CellVerticalAlignment.CENTER);
wordDocBuilder.writeln("Row 1 Cell 1 Text");
cell = wordDocBuilder.insertCell();
cell.getCellFormat().setVerticalAlignment(
CellVerticalAlignment.CENTER);
wordDocBuilder.writeln("Row 1 Cell 2 Text");
wordDocBuilder.endRow();
// --Row 2 with 2 cell
cell = wordDocBuilder.insertCell();
cell.getCellFormat().setVerticalAlignment(
CellVerticalAlignment.BOTTOM);
wordDocBuilder.writeln("Row 2 Cell 1 Text");
cell = wordDocBuilder.insertCell();
cell.getCellFormat()
.setVerticalAlignment(CellVerticalAlignment.TOP);
wordDocBuilder.writeln("Row 2 Cell 2 Text");
wordDocBuilder.endRow();
// --Row 3 with 3 cell merged
cell = wordDocBuilder.insertCell();
cell.getCellFormat().setVerticalAlignment(
CellVerticalAlignment.CENTER);
cell.getCellFormat().setOrientation(TextOrientation.HORIZONTAL);
cell.getCellFormat().setHorizontalMerge(CellMerge.FIRST);
wordDocBuilder.writeln("Row 3 Cell 3 Text");
cell = wordDocBuilder.insertCell();
cell.getCellFormat().setHorizontalMerge(CellMerge.PREVIOUS);
wordDocBuilder.endRow();
wordDocBuilder.endTable();
// Add Comment
Comment comment = new Comment(wordDoc);
comment.setAuthor("D.Righetto");