java - XWPFTableRow adding new Row with current style? -
i try use apache poi add new row onto existing xwpftable such row added hold style (font, color, etc.) of last row. normally, xwpftable.createrow() returns row blank style. tried create new xwpftablerow object using last row's ctrow construction parameter , xwpftable.addrow(). however, when created object, reference last row (whatever change made object reflected upon last row, not newly added one).
how around this?
i know it's old question, maybe useful someone:
xwpftable.addrow( xwpftable.getrow( xwpftable.getrows().size() - 1 ) ); adds new row @ end of table, identical last row.
Comments
Post a Comment