Kalyani Shevale

Kalyani Shevale

  • NA
  • 3.2k
  • 701.4k

{"Compressed part has inconsistent data length."}

Nov 19 2018 10:45 PM
"{"Compressed part has inconsistent data length."}" this error occurred on that code.
 
  1. private string GetValue(SpreadsheetDocument doc, Cell cell)  
  2.        {  
  3.            string value = cell.CellValue.InnerText;  
  4.            if (cell.DataType != null && cell.DataType.Value == CellValues.SharedString)  
  5.            {  
  6.                return doc.WorkbookPart.SharedStringTablePart.SharedStringTable.ChildElements.GetItem(int.Parse(value)).InnerText;  
  7.            }  
  8.            return value;  
  9.        }  
 plz help me
 

Answers (3)