Click here to Skip to main content
15,889,403 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi Friends,

I have query, that I am trying to download the Excel Sheet from SharePoint 2013 using C# .net, I have tried with many way but facing issue.

My share point URL is like below where in which folder my Excel present :

https://mycompany.sharepoint.com/sites/StudyDocumentIndex/clientMN/My_Client/ASTGF200527-0018/Validation/Forms/AllItems.aspx?RootFolder=%2Fsites%2FStudyDocumentIndex%2FclientMN%2FMerck_Serono%2FASTGF200527-0018%2FValidation%2FIssues%20Log&FolderCTID=0x0120001480F292DDAFAE4287EDDB0CE19B3A22&View=%7B358B3C0B-8404-43CC-9A62-8E439C1DDCAE%7D">[[
Posted
Updated 10-Nov-16 22:59pm

1 solution

You need to work with SharePoint Client Object Model, to download any file from SharePoint site by providing credentials.

Include Microsoft.SharePoint.Client dll reference in your project [No need to install SharePoint]
using Microsoft.SharePoint.Client;

Further you can follow this blog link : Download all files from SharePoint library

In this blog check Using Client object model use below code section, This code will download all files. Instead you can put validation for your filename.
 
Share this answer
 
v2

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