How can I determine column hiding when reading an Excel file using Java?

Source: Internet
Author: User

How to determine column hiding when reading Excel files using Java
Use poi to parse Excel files.
A certain column of sheet is hidden (hide). How can I find it?
I used cell. getcellstyle (). gethidden () but failed. The property obtained is:
"Format> cell> Protection> hide", instead of clicking hide in the right-click menu on the column header.
You cannot determine from the column width that if (sheet. getcolumnwidth (short) 1) = 0), even if the column is hidden, the column width is not equal to 0.
How can we solve this problem?
My mailbox: oldfoolwolf@163.com

Usage class:
Import org. Apache. Poi. hssf. usermodel. hssfcell;
Import org. Apache. Poi. hssf. usermodel. hssfrow;
Import org. Apache. Poi. hssf. usermodel. hssfsheet;
Import org. Apache. Poi. hssf. usermodel. hssfworkbook;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.