using (MemoryStream memoryStream = new MemoryStream())
{
gcSpreadSheet.SaveExcel(memoryStream, GrapeCity.Windows.SpreadSheet.Data.ExcelFileFormat.XLSX);
string jsonData = ExcelSerialization.toJSON(memoryStream);
memoryStream.Close();
return StringCompress.CompressString(jsonData);
} 当gcSpreadSheet中设置的格式较多的时候, gcSpreadSheet.SaveExcel(memoryStream, GrapeCity.Windows.SpreadSheet.Data.ExcelFileFormat.XLSX);会报空引用异常,该怎么处理?
|
|