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

后端 未结 8 1585
南方客
南方客 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:07

    For those more security paranoid, I saw another answer on SalesForce site, which should work too - https://success.salesforce.com/answers#!/feedtype=SINGLE_QUESTION_DETAIL&dc=All&criteria=BESTANSWERS&id=9063A000000iTIyQAM

    Basically marking the site you are downloading from as safe.

    I haven't tried it myself

    Basically open the website where you will be downloading excel files in Internet Explorer

    Go to Settings Internet Options Security Trusted Sites Sites Add

    This should add the site in question as allowed and then you can use whatever browser you want e.g. firefox / chrome etc.

    0 讨论(0)
  • 2020-12-08 16:08

    I had a similar issue, intranet wise. Grid export to HTML Excel all of a sudden stopped working when user clicked the open. Quick workaround, Save and Open drop down option or just save then open.

    My fix was to change content-disposition from attached to inline. Now the users get the old popup center page instead of the one at the bottom and open works just fine.

    0 讨论(0)
提交回复
热议问题