Office Open XML Überprüfen Sie, ob die Reihe leer ist
var sheetData = part.Worksheet.Elements<SheetData>().First();
var rows = sheetData.Elements<Row>().ToList();
for (var rowIndex = 0; rowIndex < rows.Count; rowIndex++)
{
var row = rows[rowIndex];
if (string.IsNullOrWhiteSpace(row.InnerText)) continue;
// Row is not empty
}
DeuxAlpha