使用C#从sharepoint URL下载excel文件 [英] Download excel file from sharepoint URL using C#

查看:376
本文介绍了使用C#从sharepoint URL下载excel文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我一直致力于从sharepoint网站下载excel文件。



我没有任何凭据,除了这个公共Sharepoint Link 下载文件。



我创建了一个C#控制台应用程序,我一直试图找到解决方法。



请告诉我如果我可以使用某些API或某些库来实现这一目标。



最好的问候,



Sohaib



我尝试了什么:



我还没有尝试过,因为我试图通过使用c#找到完成此任务的方法或者我可以用来下载文件的任何库或API。

Hi,

I have been working on a task to download an excel file from a sharepoint website.

I have no credentials nothing at all but this public Sharepoint Link to download the file.

I have created a C# console application and I have been trying to find a way out of this.

Please let me know If I can use some API or some library to achieve this.

Best Regards,

Sohaib

What I have tried:

I have tried nothing yet because I am trying to find a way to complete this task by using c# or any library or API which I can use to download the file.

推荐答案

您发布的链接是Microsoft帐户;并且没有特别链接到任何Sharepoint网站。



您需要凭据来访问给定的SP站点(或站点的​​集合) 。然后你可以使用CSOM。



c# - 如何使用CSOM从/向SharePoint 2013下载/上传文件? - 堆栈溢出 [ ^ ]
The "link" you posted is for a "Microsoft Account"; and is not "linked" to any "Sharepoint site" in particular.

You need "credentials" to access a given SP site (or "collection" of sites). Then you can use CSOM.

c# - How to download/upload files from/to SharePoint 2013 using CSOM? - Stack Overflow[^]






你是什么版本的SharePoint使用?是MOSS 2007吗?或更高版本的SharePoint 2010,12 ...?



如果是MOSS 2007,我们没有太多选择使用RTP下载文件的更好方法协议使用控制台应用程序。



如果它是更高版本我们有更好的机会,如powershell等..



但是对于任何方法,你需要在Active Directory中注册的凭证,



在开始之前做一些研究,然后开始。
Hi,

What version of SharePoint you are using? Is it MOSS 2007? or higher version of SharePoint 2010,12...?

If it is MOSS 2007, we don't have much options the better way to download the file using RTP protocol using console application.

If it is higher version we have some better opportunities like powershell etc..

But for any approach you need credentials which should be registered in Active Directory,

Before starting do some research on the same and then start.


这篇关于使用C#从sharepoint URL下载excel文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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