"{"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;
- }

Jignesh KumarRank #91 · 22.9K reputationPosted Nov 23, 2018, 5:24 AM EST
Laxmidhar SahooRank #383 · 6.6K reputationPosted Nov 23, 2018, 11:41 PM EST
Kalyani ShevaleRank #1,111 · 1.7K reputationPosted Nov 23, 2018, 11:45 PM EST