在.Net Windows应用程序中以读/写模式从Sharepoint文档库中打开Word文档 [英] Open a Word Document from Sharepoint Document Library in Read/Write mode in a .Net Windows Application

查看:75
本文介绍了在.Net Windows应用程序中以读/写模式从Sharepoint文档库中打开Word文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我们希望以编程方式以读/写模式打开位于SharePoint文档库下的Word文档 这样可以进行编辑并将更改保存回SharePoint文档库。


对于此 我们正在使用Microsoft.Office.Interop.Word dll。我们将文件的URL作为路径传递,并使用readonly属性设置为False。


但是文件在只读模式下打开。试图在编辑模式下手动打开文档,但在保存时,它不会覆盖现有文档并提示用新名称保存它。


我试过先检查文件然后再尝试使用Microsoft.Office.Interop.Word代码打开它,然后它也以只读模式打开。


可以任何一个 请帮助我以读/写模式打开文件,以便进行编辑并将更改保存回Sharepoint文档库。



解决方案

https://stackoverflow.com/questions/14152520/open-ms-word-in-write-mode-using-microsoft-office-interop-word

Hello,

We want to open a Word document residing under a SharePoint document library in read/write mode programmatically  so that can make the edit and save the changes back to SharePoint Document library.

For this  we are using Microsoft.Office.Interop.Word dll . We are passing the URL of file as the path and used readonly property set to False.

But the file is getting open in Read Only mode. Tried to manually open the document in Edit mode but while saving, it is not overwriting the existing one and prompting to save it with new name.

I tried by first checking out the file and then open it using Microsoft.Office.Interop.Word code then also it is getting open as Read Only mode.

Can any one  please help me making the file open in read/write mode so that can make the edit and save the changes back to Sharepoint Document library.

解决方案

https://stackoverflow.com/questions/14152520/open-ms-word-in-write-mode-using-microsoft-office-interop-word


这篇关于在.Net Windows应用程序中以读/写模式从Sharepoint文档库中打开Word文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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