在后台使用FarPoint控件获取这个json,来导出到Excel
FpSpread spread = new FpSpread();
Exporter exporter = new Exporter(json);
var stream = new MemoryStream();
exporter.SaveExcel(stream, GrapeCity.Windows.SpreadSheet.Data.ExcelFileFormat.XLSX);
stream.Seek(0, SeekOrigin.Begin);
spread.OpenExcel(stream);
spread.SaveExcel(saveFileName, FarPoint.Excel.ExcelSaveFlags.UseOOXMLFormat);
这样能明白吗?? |