When using GetColumnStyle method of ISheet interface, getting the error "Nullable object must have a value."
var workbook = new XSSFWorkbook(fileStreem);
var worksheet = package.GetSheetAt(0);
var columnStyle = worksheet?.GetColumnStyle(0); // Getting error "Nullable object must have a value." here if style for the column doesn't exists.
When using GetColumnStyle method of ISheet interface, getting the error "Nullable object must have a value."
var workbook = new XSSFWorkbook(fileStreem); var worksheet = package.GetSheetAt(0); var columnStyle = worksheet?.GetColumnStyle(0); // Getting error "Nullable object must have a value." here if style for the column doesn't exists.