How to get column width using ExcelDataReader library?

520 Views Asked by At

I know how to get RowHeight

using(var xls2003Stream = new MemoryStream(xlsBytes)) 
{
    using(var reader = ExcelReaderFactory.CreateReader(xls2003Stream))
    {
        var height = reader.RowHeight;
        ...
    }
}

but the question is - can I get the column width using the ExcelDataReader library?

2

There are 2 best solutions below

0
Mr-Cas On BEST ANSWER

Issue opened on GitHub as they just didn't implement this property. https://github.com/ExcelDataReader/ExcelDataReader/issues/365

0
AakashM On

Based on the fact that searching the library's repo for the word width doesn't show up anything useful, I'm going to say no it's not currently possible. But then, from the issue you opened, you knew that right? :)