"{"Compressed part has inconsistent data length."}" this error occurred on that code.
- private string GetValue(SpreadsheetDocument doc, Cell cell)
- {
- string value = cell.CellValue.InnerText;
- if (cell.DataType != null && cell.DataType.Value == CellValues.SharedString)
- {
- return doc.WorkbookPart.SharedStringTablePart.SharedStringTable.ChildElements.GetItem(int.Parse(value)).InnerText;
- }
- return value;
- }
plz help me