WinFrom 保存为Excel时报错!!!
jpg
后台代码
if (saveFileDialog.FileName.EndsWith(".xls"))
{
// 转换单元格文字
FpSpread oFpSpread = new FpSpread();
oFpSpread.Tag = currentReport.Tag;
foreach (SheetView oSheetView in currentReport.Sheets)
{
oFpSpread.Sheets.Add(oSheetView.Clone());
}
ConvertCellTextToExcel(ref oFpSpread);
oFpSpread.SaveExcel(saveFileDialog.FileName);
} |
-
jpg
|