我正在使用下面的代码将我的报告导出到excel,它在excel2007中工作正常,但是对于excel2003,工具栏丢失了,我什至无法保存,这是怎么回事?
strFileName = Server.MapPath(EIMSCore.SysConfigEngine.SysConfig.fncGetExportFolderPath()) & "Report" & strFileID.NewGuid().ToString() & ".xls"
crDiskFileDesOpts.DiskFileName = strFileName
crExportOpts.ExportFormatType = ExportFormatType.Excel
crMainReport.Export()
'mersad00
EIMSCore.EIMSCommon.General.ReleaseReportObject(crMainReport)
With Response
.ClearContent()
.ClearHeaders()
.ContentType = "application/vnd.ms-excel"
.WriteFile(crDiskFileDesOpts.DiskFileName)
.Flush()
.Close()
End With