Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1470
Download filename always appends .xls even though format is set to Excel2007
posted
  WebExcelExporter1.DataExportMode = DataExportMode.AllDataInDataSource
        WebExcelExporter1.ExportMode = ExportMode.InBrowser
        WebExcelExporter1.WorkbookFormat = Infragistics.Documents.Excel.WorkbookFormat.Excel2007
        WebExcelExporter1.DownloadName = "Report" & DateTime.Now.ToString("_HHmmss_MMddyyy") & ".xlsx"
       

The format of the Excel file is 2007; however, the extension appended to the download name is .xls We can open the file in Excel 2007 after removing the .xls extension.



Parents Reply Children
No Data