Monday 24 April 2017

Set font style in a table for a row. in apache poi


XWPFTable table = document.createTable();
XWPFTableRow row = table.insertNewTableRow(0);
XWPFRun run = row.addNewTableCell().addParagraph().createRun();
run.setBold(true);run.setText("Your Text");

ref : how-to-format-the-text-in-a-xwpftable-in-apache-poi