mirror of https://github.com/apache/poi.git
#63017 - Remove rows from a XSLFTable
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1849248 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9eea29da5b
commit
422d3a75f9
|
@ -68,7 +68,7 @@ public class TestXSLFTable {
|
|||
tab.setColumnWidth(1, 60);
|
||||
tab.setColumnWidth(2, 60);
|
||||
|
||||
int startRow = rowIdx;
|
||||
int startRow = rowIdx-1;
|
||||
|
||||
XSLFTableRow row = tab.getRows().get(0);
|
||||
for (int colIdx=0; colIdx<data[0].length; colIdx++) {
|
||||
|
@ -97,7 +97,7 @@ public class TestXSLFTable {
|
|||
as.setAnchor(tab.getAnchor());
|
||||
}
|
||||
|
||||
File fileOut = TempFile.createTempFile("tabtest", "pptx");
|
||||
File fileOut = TempFile.createTempFile("tabtest", ".pptx");
|
||||
try (FileOutputStream fos = new FileOutputStream(fileOut)) {
|
||||
ppt.write(fos);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue