我们怎样才能读保护密码擅长与POI API文件(.xls) [英] How can we read protected password excel file (.xls) with POI API
问题描述
我刚刚得知POI,找到HSSF是读取非常简单,创建EXCEL文件(.xls)。
然而,我发现了一些问题,想读的Excel密码保护时。
我花了一个小时才找到互联网上的这一解决方案。
I've just learned POI and find the HSSF is very simple to read and create excel file (.xls). However, I found some problem when want to read excel protected with password. It took me an hour to find this solution on internet.
请你能不能帮我解决这个问题。
我很高兴,如果你能给我一个code片段。
Please could you help me to solve this problem. I'm very glad if you could give me a code snippet.
感谢您。
推荐答案
POI将无法读取加密的工作簿的 - 这意味着,如果你保护了全部工作簿(不只是一个表),那么它将无法读取它。否则,它应该工作。
POI will not be able to read encrypted workbooks - that means that if you have protected the entire workbook (and not just a sheet), then it won't be able to read it. Otherwise, it should work.
这篇关于我们怎样才能读保护密码擅长与POI API文件(.xls)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!