Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How does one get the number of sheets in a workbook? #121

Open
dannypurcell opened this issue Jul 27, 2023 · 0 comments
Open

How does one get the number of sheets in a workbook? #121

dannypurcell opened this issue Jul 27, 2023 · 0 comments

Comments

@dannypurcell
Copy link

dannypurcell commented Jul 27, 2023

Or otherwise use the stream_list function to stream through all sheets without either knowing how many there are in advance or guessing until it throws an exception?

It seems like I'm just missing something about how to use the streaming API. Is there a function for this which I have just overlooked in the code?

I can see how multi_extract iterates the sheets with the worksheet_xml_files struct function, but I haven't spotted an API function for counting them and I don't want to call multi_extract and therefore load the whole file into memory just to get the number of sheets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant