Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Set cell width or set column autofit xlsx. #729

Closed
MrElLeRm opened this issue Mar 4, 2020 · 2 comments
Closed

Set cell width or set column autofit xlsx. #729

MrElLeRm opened this issue Mar 4, 2020 · 2 comments

Comments

@MrElLeRm
Copy link

MrElLeRm commented Mar 4, 2020

Hello guys!

I'm new in using box/spout package and i'm need some help.

I'm want to style my rows / columns and important thing for visualization my sheet is pretty column width, because content slicing cut some text and it's uncomfortable for my users to resize column manual

@madflow
Copy link
Contributor

madflow commented Mar 5, 2020

Unfortunately - this is not possible at the moment. You can read up on the discussion here: https://github.com/box/spout/issues?q=column+width

@chiqui3d
Copy link

chiqui3d commented Mar 6, 2020

A pity, I'll have to use https://phpspreadsheet.readthedocs.io/en/latest/

Thanks

ignaczistvan added a commit to ignaczistvan/spout that referenced this issue Aug 14, 2020
shrinkToFit was not handled in StyleMerger so it was overwritten by the default cell style
StyleManager didn't add the property to the xml if shrinkToFit was used without alignment or text wrap.
Unit test
@adrilo adrilo closed this as completed Feb 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants