通过 openFileDialog 打开一个 web 文件夹 (Sharepoint 2007) [英] Open a web folder (Sharepoint 2007)through openFileDialog

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

问题描述

我有以下用 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:intranetcompanydivisionphotos"

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:intranetcompanydivisionphotos"

任何人都对我如何做到这一点有任何想法.我早上已经筋疲力尽了寻找答案,而我的 GoogleFu 显然达不到标准.我看到了稀疏的建议,但是,它看起来可能需要 WPF(Windows Presentation Foundation)或为 Visual Studio 安装 Sharepoint SDK(这可能(?)允许我直接访问 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

推荐答案

Sharepoint 通常可以像上面一样使用 UNC 路径访问.浏览器

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

\mysharepointserver.domain.tldpath omydocumentlibrary

\mysharepointserver.domain.tldpath omydocumentlibrary

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

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