1金币
现象:
FpSpread.ActiveSheet.AutoGenerateColumns = true;
//导出xls,有列头
FpSpread.ActiveSheet.SaveExcel(dlg.FileName, ExcelSaveFlags.SaveCustomColumnHeaders);
//导出xlsx,无列头
FpSpread.ActiveSheet.SaveExcel(dlg.FileName, ExcelSaveFlags.SaveCustomColumnHeaders | ExcelSaveFlags.UseOOXMLFormat);
问题:
AutoGenerateColumns = true,怎样导出xlsx有列头?
|
|