Skip to content

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

@dannypurcell

Description

@dannypurcell

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions