在 Windows 应用程序中打开 SharePoint Word 文档

发布于 2024-10-02 23:08:57 字数 404 浏览 0 评论 0原文

我正在尝试打开一个实际位于 Windows 应用程序 (WinForms) 中的 SharePoint 库中的现有 Word 文档。

如果我使用 Internet Explorer 打开文档,该文档处于只读状态,但我在 Word 应用程序中有一个“编辑文档”按钮,我可以使用它来保存我的文档(删除只读)。

我已在 Windows 应用程序中尝试以下操作来打开 SharePoint 文档:

System.Diagnostics.Process.Start("http://.../MyFile.docx");

这实际上是在 Word 中打开我的文档,但我遇到了问题。如果我使用此方法打开文档,则打开的文档处于只读状态,并且看不到“编辑文档”按钮...我该如何解决此问题?

谢谢,

I'm trying to open an existing Word document that is actually located in a SharePoint library in a Windows application (WinForms).

If I open the document using Internet Explorer, the document is in readonly but I have a "Edit Document" button in Word application that I can use to be able to save my document (remove the read-only).

I've tried the following in my Windows application to open a SharePoint document:

System.Diagnostics.Process.Start("http://.../MyFile.docx");

This is actually opening my document in Word but I have a problem. If I open my document using this method, the document opened is in readonly and I do not see the "Edit Document" button... How can I resolve this problem?

Thanks,

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

说不完的你爱 2024-10-09 23:08:57

您可以尝试单击 Word 中的“另存为...”选项以获得文档的可编辑版本吗?

Can you try clicking on the "Save As..." option in Word in order to get an editable version of the document?

旧话新听 2024-10-09 23:08:57

我认为您需要启动 ms word (winword.exe) 作为带有参数的程序来打开文档。

看一下知识库文章:
http://support.microsoft.com/kb/210565

I think you will need to start ms word (winword.exe) as the program with an argument to open the document.

Take a look at the KB article:
http://support.microsoft.com/kb/210565

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文