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

Auto Size #12

Closed
bernardogeneroso opened this issue Jan 16, 2023 · 2 comments
Closed

Auto Size #12

bernardogeneroso opened this issue Jan 16, 2023 · 2 comments

Comments

@bernardogeneroso
Copy link

bernardogeneroso commented Jan 16, 2023

Hi again! Thank you for the alignment.
I didn't find auto size on documentation related with columns.

@sveinungf
Copy link
Owner

Auto sizing column width isn't supported, and unfortunately it might never be fully supported. This is because XLSX files don't have support for it, only the actual column width values are stored. The way Excel and other spreadsheet libraries do auto sizing is by going through the data in each column and then calculate the width. However, this requires having all the row data in memory, and SpreadCheetah is designed to avoid that for performance reasons. So the only option for now is to set the width explicitly for each column.

@bernardogeneroso
Copy link
Author

I understand, thank you.

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

2 participants