brechtsanders / xlsxio

XLSX I/O - C library for reading and writing .xlsx files
MIT License
417 stars 112 forks source link

can not get all sheet name #42

Open yingnierxiao opened 5 years ago

yingnierxiao commented 5 years ago

when i use ./example_xlsxio_read can get all sheet name. xlsxio_xlsx2csv can not get all sheet name s_Block.xlsx you can use this file test.

brechtsanders commented 5 years ago

I looked into this and it appears when I re-save your file with Excel it does work. Which application generated this file?

yingnierxiao commented 5 years ago

mac office 16.9

brechtsanders commented 5 years ago

I opened your file and saved it again with Office 16.0 and had no problems. Debugging your file it seems the code has problems iterating through all the sheets and the iterating deeper down somewhere else. I suspect "[Content_Types].xml" inside the zip archive is being opened twice like that.

yingnierxiao commented 5 years ago

i print log,that is callback from xml lib.

brechtsanders commented 5 years ago

I don't understand what you are trying to say. Can you explain?

brechtsanders commented 4 years ago

Could you try to reproduce your issue with the latest version of XLSX I/O? If you still gave it please send an .xlsx file that the problem can be reproduced with.