上边的问题暂时解决了- spread.ActiveSheet.Rows.Count += spread.ActiveSheet.ColumnHeader.RowCount;
- try
- {
- spread.SaveExcel(fileName, FarPoint.Excel.ExcelSaveFlags.SaveBothCustomRowAndColumnHeaders);
- }
- catch (System.Exception ex)
- {
- MessageBox.Show(ex.Message, "系统提示");
- }
- finally
- {
- spread.ActiveSheet.Rows.Count -= spread.ActiveSheet.ColumnHeader.RowCount;
- }
复制代码 |