我有:
import org.apache.poi.ss.usermodel.Row;
if ((currentRow = sheet.getRow(currentDataRow)) == null) {
currentRow = sheet.createRow(currentDataRow); // Creates a new row.
}
// How to un-hide currentRow ?
currentRow
是隐藏的,所以使用currentRow
对象取消隐藏这行?
请帮. .!!
看起来像是getRowStyle().setHidden():
currentRow.getRowStyle().setHidden(false);
关于getRowStyle的更多信息
我有poi-3.7,这些方法也没有显示。
下载了最新的poi-3.8-beta4和row.setRowStye()和row.getRowStye()
Row.getRowStyle():返回整行单元格样式。大多数行都没有,因此将返回null。
但是你可以检查这行是否被row. getzeroheight()隐藏,并使用row. setzeroheight (false)显示行;