ios - 在 Ipad 上的 PowerPoint 中打开 PowerPoint 文件

标签 ios powerpoint office365

我正在尝试从移动版 Safari 链接到一个 .pptx 文件,并在 PowerPoint 中打开该文件。根据 https://www.test.com/test.pptx 上的信息,我的链接看起来像这样 href="ms-powerpoint:ofv|u| https://msdn.microsoft.com/en-us/library/office/dn906146.aspx#sectionSection8 "

PowerPoint 方案 = ms-powerpoint:

open-for-view-cmd = "ofv|u|"文档-uri

这在通过几个警告后在 Windows 桌面上工作得很好,但是在 iPad 上它打开 office 365 说打开文件 test.pptx 0% 然后得到以下错误“您尝试访问的服务器不是此版本的office支持"

如有任何帮助,我们将不胜感激。

我有一台运行 ios 8.3 的 iPad

谢谢。

最佳答案

根据 iOS 开发文档,您需要确认您的 URL 方案是否可以被当前使用 canOpenURL 的设备上安装的应用程序打开

如果设备上没有安装注册处理 URL 方案的应用程序,或者您没有在 Info.plist 文件中声明 URL 方案,它将返回 NO;否则,YES

If your app is linked on or after iOS 9.0, you must declare the URL schemes you want to pass to this method.

If your (iOS 9.0 or later) app calls this method using a scheme you have not declared, the method returns NO, whether or not an appropriate app for the scheme is installed on the device.

至于实际URL 的结构,它必须经过编码,并且必须是指向文件的直接链接(而不是重定向)。如果 URL 的格式是 Office 无法处理的,或者下载失败,Office 将不会将用户返回到调用应用程序。

Example of encoded: ms-powerpoint%3Aofv%7Cu%7Chttps%3A%2F%2Fwww.test.com%2Ftest.pptx

此外,为了安全起见,如果文件打开成功,Office 只会将用户返回到引用的应用程序。退出应用程序会调用传回协议(protocol)、打开模式、URL、上传挂起状态和文档上下文。上传挂起状态使用描述符 |z|,是或否。

这些问题的组合或单个问题可能会导致您的文档无法打开。

关于ios - 在 Ipad 上的 PowerPoint 中打开 PowerPoint 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29929473/

相关文章:

ios - 如何在饼图上为标签找到合适的位置?

c# - 使用 Android 设备在谷歌浏览器中打开 URL

graphics - PowerPoint - 如何将标签附加到线条图形

java - 如何以编程方式从 Office 文件中提取和操作图像?

asp.net-mvc - Office 365 和 Azure 集成

azure - PowerShell Azure Functions Multi-Tenancy 查询

ios - 警告 : "Sending ' NSObject *' to parameter of incompatible type ' id<NSCopying>'

ios - ECSlidingViewController 中的 Top View Controller 是否有办法知道侧边栏菜单何时被关闭?

python - 如何在 python 中使用 pptx 对表进行格式更改?

exchangewebservices - 将EWS与Office 365一起使用时由于服务器不支持请求的版本而失败