simplexlsx icon indicating copy to clipboard operation
simplexlsx copied to clipboard

The 'activeSheet' value is not set

Open bjkleier opened this issue 1 year ago • 1 comments

The 'reptile' code is not executed because a break exits the foreach loop after the workbook.xml content has been read. I have tested the example "XLSX get sheet names and sheet indexes" with the "countries_and_population.xlsx" and the output is not as in the example. The value of activeSheet is 0 instead of 1. My proposed solution: move the code of '// reptile hack :: find active sheet from workbook.xml' before the break; (move line 505-510 in the source code to line 502).

`

bjkleier avatar Apr 05 '24 10:04 bjkleier

fixed in 1.0.20

shuchkin avatar Apr 05 '24 10:04 shuchkin