Bug 62489 - set table's cell width dont work
Summary: set table's cell width dont work
Status: NEW
Alias: None
Product: POI
Classification: Unclassified
Component: HWPF (show other bugs)
Version: 3.17-FINAL
Hardware: PC Mac OS X 10.1
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-26 08:58 UTC by janly
Modified: 2018-06-26 08:58 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description janly 2018-06-26 08:58:11 UTC
XWPFTable table = doc.createTable(3, 3);
List<XWPFTableRow> rows = table.getRows();
XWPFTableCell cell = rows[0].getTableCells().get(0);
CTTcPr cellPr = cell.getCTTc().addNewTcPr();
                cellPr.addNewVAlign().setVal(STVerticalJc.TOP);
                CTTblWidth tcw = cellPr.addNewTcW();tcw.setW(BigInteger.valueOf(1000));
                	tcw.setType(STTblWidth.NIL);
 cell.setText("im test the cell width fixed ,dont auto"); //it effective
cell.setText("1111111111111111111111111111111111111111"); //invalid,the with was 1000 but ,view with office ,the cell was not 1000,its growth