【问题标题】:How do I serve Excel spreadsheets to IOS9 over the web?如何通过网络向 IOS9 提供 Excel 电子表格?
【发布时间】:2015-09-24 14:14:56
【问题描述】:

我有一个托管 Excel 电子表格的经过验证的网站。 Apple 用户已经能够在 Safari 中令人满意地查看这些电子表格。但在 IOS9 中,.xlsx 电子表格不再正确显示,只显示标题,不显示任何内容。相关的 HTTP 标头是

Content-Disposition:attachment; filename="sheet.xlsx"
Content-Type:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

我不禁注意到我在 iPad 上安装了 Excel,但我在有问题的 Safari 中查看文档。有没有办法让我的文档从 Safari 到 Excel,或者我可以设置一个标题来允许这样做?

(使用 iOS 9.1 和 Excel,Safari终于显示“在 Excel 中打开”选项。)

【问题讨论】:

    标签: excel safari ios9


    【解决方案1】:

    我也看到了这种行为。

    在 iOS 9 上的 Safari 中通过 SSL 打开 xlsx 文件仅显示标题。

    它可以在 iOS 9 的 Chrome 和 Dolphin 中正常运行,而 Safari 在 iOS 8 设备上也可以正常运行。

    编辑: 使用网络检查器,我能够看到 javascript 和 css 文件被阻止。 以下是警告。

    [Warning] [blocked] The page at [URL] was not allowed to run insecure content 
    from x-apple-ql-id://C18FD844-A305-415A-8096-90DFD8D43CA8/x-apple-ql-magic/Tabs.js.
    
    [Warning] [blocked] The page at [URL] was not allowed to run insecure content 
    from x-apple-ql-id://018921C7-D074-4763-8838-E44E535A65F4/x-apple-ql-magic/Tabs.css. 
    

    还有一个错误

    [Error] ReferenceError: Can't find variable: ReloadFirstSheetIfNeeded
    

    【讨论】:

    • 那么答案是什么?
    • 我用苹果记录了一个错误报告。在我看来,他们不相信自己。我的猜测是任何服务“x-apple-ql-id”都不支持 iOS 9 现在需要的 TLS1.2。
    • 所有人都认为答案是否定的。
    • iOS 9.0.2 解决了这个问题
    • iOS 9.1 也没有解决这个问题:(
    猜你喜欢
    • 2011-09-26
    • 1970-01-01
    • 2012-08-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-08-10
    • 1970-01-01
    相关资源
    最近更新 更多