Search code examples
.netexceldatareader

How to get column width using ExcelDataReader library?


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?


Solution

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