Pergunta

i need to read XLS(not XLSX) file efficiently and I found the XLS2CSVmra example of POI, the problem is that I need to read one sheet only (i have sheet name sheet index etc.). Is there any way to restrict reading to one sheet only?

Any help will be appreciated.

Thanks in advance, Yan

Foi útil?

Solução

It should be really simple - in the record handler for BOFRecord, when it has worked out the sheet, just have it stop processing when it sees the start of the sheet after the one you want. Done!

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top