同步到一个驱动器的文件未以只读方式打开 [英] Files Synced to One Drive is not opened as Read-Only

查看:71
本文介绍了同步到一个驱动器的文件未以只读方式打开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我们正面临异常(进程无法访问文件'C:\OneDrive \ input.xlsx',因为它正被另一个进程使用)使用文件流以只读模式打开Excel文件时,当文件与One Drive同步时,它已经在Microsoft Excel中打开
We are facing the exception (The process cannot access the file 'C:\OneDrive\input.xlsx' because it is being used by another process) while opening the Excel file in read-only mode using file stream, when the file is synced with One Drive and it's already opened in Microsoft Excel.

推荐答案

这是设计的。 Office是OneDrive和SharePoint感知。如果您从这些位置打开文件,它会有额外的挂钩以确保事物保持同步。我不知道有任何方法可以解决它。考虑在Office论坛中发布这个,也许
有人可以告诉你如何禁用一些模糊的设置。

This is by design. Office is OneDrive and SharePoint aware. If you open files from either of these locations it has extra hooks to ensure things stay in sync. I'm not aware of any way to work around it. Consider posting this in the Office forums and maybe somebody can tell you how to disable some obscure setting.


这篇关于同步到一个驱动器的文件未以只读方式打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆