
本文介绍了是否可以使用convert字段使用来自Microsoft Office文件的数据更新Google文档文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我希望能够远程编辑Google文档。我可以将文件导出为可编辑的格式,例如Office,但无法将编辑的数据填充回来。我总是可以删除原始文件,并通过上传新文件并将其转换回Google Docs格式来取代它,但这会删除所有修订历史记录。
该API似乎表明文件更新功能支持转换字段,但我还没有取得任何成功。这是可能的吗?
在我的测试中,我有一个Google演示文稿,并试图用二进制数据中的MS PPTX文件进行更新,将MIME类型设置为应用程序/ vnd.openxmlformats-officedocument.presentationml.presentation并设置convert = true,所有这些都使用Drive-C的Objective-C库。 解决方案
保留mimeType为空,并设置convert = true。使用convert = true时,它只能转换为一种Google文档。
是的,您将失去修订记录。
I'd like to be able to edit Google Docs files remotely. I can export the file into an editable format such as Office, but am having trouble stuffing the edited data back. I could always delete the original file and replace it by uploading the new file and coverting it back to Google Docs format but that would erase all of the revision history.
The API seems to indicate that the Files Update function supports the convert field, but I haven't had any success getting it to work. Is this possible?
In my tests, I have a Google Presentation and am trying to update it with an MS PPTX file in the binary data, setting the mime type to "application/vnd.openxmlformats-officedocument.presentationml.presentation" and setting convert=true, all using the Objective - C library for Drive.
解决方案
Leave the mimeType empty, and set convert=true. With convert=true, it can only be converted to one type of Google Docs.
Yes, you will lose the revision history.
这篇关于是否可以使用convert字段使用来自Microsoft Office文件的数据更新Google文档文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!