Quantcast
Channel: Excel IT Pro Discussions forum
Viewing all articles
Browse latest Browse all 11829

How to open and read Excel Sheet from SharePoint 2013 Document Library using C# Visual Studio 2012

$
0
0

Hi,

To achieve these are the steps that I had followed :

1. Add the document Library path into Central Admin -> Application Mgmt -> Manage Service App -> Excel Service App -> Trusted File Locations

2. Add Documnet Library link to Trusted Connection Proivder

3. Open Visual Studio as Run as Administrator

4.Create an SharePoint 2013 Empty Project.

5.Add Service Reference : http:\\<server>\_vti_bin/excelservice.asmx

6.Service added successfully

7.Create a class file and add the Service Reference namespace

There is no such class as ExcelService to call. 

Please let me know if somebody knows how to open the Excel file into C#(2012)  either using ExcelService or any other way to open. I tried old methods of Sharepoint 2010 server but it's not able to access classes.

Requirement is :

Need to read the excel sheet  from Document Library and transfer all data into DataTable.

Please help asap. 


Viewing all articles
Browse latest Browse all 11829

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>