excel 2013 年和 2016 年未打开 html 报告
excel 2013 and 2016 not opening html reports
我们有一个应用程序可以在服务器端生成 html table 并允许用户将报告下载为 xls 文件。应用程序returns数据为html格式但保存为xls.
在过去一周左右的时间里,报告已停止工作。我们收到错误消息
Excel cannot open the file Report1.xls because the file format or
file extension is not valid. Verfiy that the file has not been
corrupted and that the file extension matches the format of the file.
这个问题有解决方法吗?
对于遇到类似问题的任何其他人,我们可以通过执行以下解决方法来解决此问题 -
You can make use of existing Trusted Locations capabilities in Excel
2010, 2013, and 2016 via File -> options -> Trust Center -> Trust
Center Settings -> Trusted Locations.
- You can save the web html file to a trusted location on the local machine (Excel comes with a set of default trust locations). If you do
not see the local folder location you trust for these files, then
press “Add new location…” button and add it in the Trusted Location
dialog. If the HTML document is in a trusted location the KB fix is
not applied (e.g. the unsafe HTML file is not blocked).
- This approach may unblock you, but it carries some risk as files of any file type in Trusted Locations are fully trusted. If an
attacker can drop files into the trusted location they can easily
exploit users who open such documents. Be especially cautious when
specifying a custom folder as a trusted location.
Excel 2007 工作正常,
Excel2010安装最新的Windows更新后会再次打开,
Excel2013到现在还有问题
我们有一个应用程序可以在服务器端生成 html table 并允许用户将报告下载为 xls 文件。应用程序returns数据为html格式但保存为xls.
在过去一周左右的时间里,报告已停止工作。我们收到错误消息
Excel cannot open the file Report1.xls because the file format or file extension is not valid. Verfiy that the file has not been corrupted and that the file extension matches the format of the file.
这个问题有解决方法吗?
对于遇到类似问题的任何其他人,我们可以通过执行以下解决方法来解决此问题 -
You can make use of existing Trusted Locations capabilities in Excel 2010, 2013, and 2016 via File -> options -> Trust Center -> Trust Center Settings -> Trusted Locations.
- You can save the web html file to a trusted location on the local machine (Excel comes with a set of default trust locations). If you do not see the local folder location you trust for these files, then press “Add new location…” button and add it in the Trusted Location dialog. If the HTML document is in a trusted location the KB fix is not applied (e.g. the unsafe HTML file is not blocked).
- This approach may unblock you, but it carries some risk as files of any file type in Trusted Locations are fully trusted. If an attacker can drop files into the trusted location they can easily exploit users who open such documents. Be especially cautious when specifying a custom folder as a trusted location.
Excel 2007 工作正常, Excel2010安装最新的Windows更新后会再次打开, Excel2013到现在还有问题