Export HTML Table to Excel- Doesn't Open in Office 2010

后端 未结 8 1615
南方客
南方客 2020-12-08 15:40

I am using the following Javascript code to generate an excel on the fly, which converts HTML table to a spreadsheet.

The excel file does not open in Office 2010, sh

8条回答
  •  南方客
    南方客 (楼主)
    2020-12-08 16:05

    Similar issue, my code dumps from a GridView to an XLS file using StringWriter, HTMLTextWriter and RenderControl.

    Since our ASP.NET code runs on a company intranet we uninstalled the following updates across the company instead of going into 100s of user PCs and changing their settings.

    Uninstalled:

    • Windows Update KB3115262 (Excel 2013)
    • Windows Update KB3115130 (Excel 2010)
    • Windows Update KB3115272 (Excel 2016/64 bit)

    This fixed our issue, and would also fix yours and others affected by these updates.

提交回复
热议问题