如何使用Java中的Apache Poi取消隐藏Excel中的隐藏行? [英] How to Un-Hide a hidden row in Excel using Apache Poi in Java?

查看:1340
本文介绍了如何使用Java中的Apache Poi取消隐藏Excel中的隐藏行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有:

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 对象隐藏此行?

currentRow is hidden, so to un-hide this row using this currentRow object?

请帮助.. !!

推荐答案

看起来像是 getRowStyle()。setHidden()

currentRow.getRowStyle().setHidden(false);

关于 getRowStyle

这篇关于如何使用Java中的Apache Poi取消隐藏Excel中的隐藏行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆