通过打开文件对话框打开Web文件夹(2007年的Sharepoint) [英] Open a web folder (Sharepoint 2007)through openFileDialog

查看:112
本文介绍了通过打开文件对话框打开Web文件夹(2007年的Sharepoint)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用C#编写以下代码片段:

I have the following snippet of code written in C#:

openFileDialog1.InitialDirectory = "\\\\fwm-storage\\users\\" + 
curUser + "\\My Documents\\My Pictures";
openFileDialog1.Filter = "All Files (*.*)|*.*|Images (*.jpg)|*.jpg";
openFileDialog1.FilterIndex = 2;
// blah, blah, blah



伟大的工程和所有,但,我想要能够添加/修改有能力在 openFileDialog.InitialDirectory 的是我们的SharePoint服务器上的Web文件夹。说,例如:HTTP:\intranet\company\division\photos

Which works great and all, but, I want to be able to add/change the ability to have the openFileDialog.InitialDirectory be a web folder on our SharePoint server. Say, for example: "http:\intranet\company\division\photos"

任何人有任何想法,我怎么能做到这一点。我用尽我早上寻找一个答案,我的GoogleFu显然没有达到标准。我已经看到稀疏的建议,但是,它看起来像它可能需要WPF(Windows演示基础)或安装在SharePoint SDK为Visual Studio(可能(?)让我直接访问SharePoint的dBase)。我不是上面安装SDK是否会得到我的地方,我需要去;但没有这么多的WPF。

Anyone have any ideas as to how I can do this. I have exhausted my morning looking for an answer and my GoogleFu is apparently not up to par. I have seen sparse recommendations, but, it looks like it might require WPF (Windows Presentation Foundation) or installing a Sharepoint SDK for Visual Studio (which might(?) allow me to directly access the SharePoint dBase). I am not above installing the SDK if that will get me to where I need to go; but not so much on the WPF.

任何帮助是极大的赞赏。即使只是说不能做。如果您需要了解更多信息,总是乐意效劳。

Any help is greatly appreciated. Even if just to say it can't be done. If you need more information, always happy to oblige.

感谢。

Jasooomian

Jasooomian

推荐答案

的Sharepoint通常可以使用上面一样UNC路径访问。 IE

Sharepoint can usually be accessed using UNC paths just as above. IE

\\mysharepointserver.domain.tld\path\to\my\document\library\

\\mysharepointserver.domain.tld\path\to\my\document\library\

这篇关于通过打开文件对话框打开Web文件夹(2007年的Sharepoint)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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