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 to get column width? #365

Closed
Snoopy-dogg opened this issue Nov 8, 2018 · 1 comment
Closed

How to get column width? #365

Snoopy-dogg opened this issue Nov 8, 2018 · 1 comment

Comments

@Snoopy-dogg
Copy link

Snoopy-dogg commented Nov 8, 2018

I know i can get RowHeight like this:
using(var xls2003Stream = new MemoryStream(xlsBytes))
{
using(var reader = ExcelReaderFactory.CreateReader(xls2003Stream))
{
var height = reader.RowHeight;
...
}
}
But the question is - can i get column width in some way? If there no such feature would be great to add this.

@andersnm
Copy link
Collaborator

andersnm commented Nov 8, 2018

Hi,

This is not supported, but is a valid feature request. Should be pretty straightforward to implement for XLSX, and a little harder for XLS. And needs a bit of planning what the API should look like

For XLS it appears to be documented in [MS-XLS] 2.4.89 DefColWidth and 2.4.53 ColInfo

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