Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/lua/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Microsoft graph api Microsoft图形支持编辑打开的PowerPoint文件_Microsoft Graph Api_Office365_Powerpoint_Office Js - Fatal编程技术网

Microsoft graph api Microsoft图形支持编辑打开的PowerPoint文件

Microsoft graph api Microsoft图形支持编辑打开的PowerPoint文件,microsoft-graph-api,office365,powerpoint,office-js,Microsoft Graph Api,Office365,Powerpoint,Office Js,我有一个场景,用户打开的PowerPoint演示文稿需要通过自定义解决方案进行修改。我正在考虑将PowerPoint web加载项与Graph API对OneDrive/SharePoint文件的支持结合使用 但是,PowerPoint在JavaScriptforOffice API中还没有专门用于替换当前编辑的演示文稿内容的内容。作为概念证明,我尝试使用Graph覆盖OneDrive中使用的特定PowerPoint文件,但它引发了一个错误,因为该文件在PowerPoint for Window

我有一个场景,用户打开的PowerPoint演示文稿需要通过自定义解决方案进行修改。我正在考虑将PowerPoint web加载项与Graph API对OneDrive/SharePoint文件的支持结合使用

但是,PowerPoint在JavaScriptforOffice API中还没有专门用于替换当前编辑的演示文稿内容的内容。作为概念证明,我尝试使用Graph覆盖OneDrive中使用的特定PowerPoint文件,但它引发了一个错误,因为该文件在PowerPoint for Windows中打开:

Status Code: 423 Microsoft.Graph.ServiceException: Code: resourceLocked 
Message: The resource you are attempting to access is locked 
Inner error:    AdditionalData:     
                date: 2020-10-05T21:06:53   
                request-id: 5e3c2604-382d-4139-a433-8b95ef4f619e    
                client-request-id: 5e3c2604-382d-4139-a433-8b95ef4f619e 
ClientRequestId: 5e3c2604-382d-4139-a433-8b95ef4f619e
我注意到,如果我在PowerPoint Online中打开同一个文件,共享图标指示器就会触发,我可以在任一编辑器中进行更改,而这些更改几乎会立即在另一个编辑器中更新。因此,存在一个协议来进行实时更改。我猜这是通过??。我是否可以使用另一种图形方法来支持此场景?或者我必须构建一个完整的WOPI客户机和/或服务器解决方案才能做到这一点(如果可能的话,这看起来很疯狂)