Click here to Skip to main content
15,880,405 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Updated 15-Aug-18 5:42am

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[^]
 
Share this answer
 
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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900