実際、SharePoint の機能のみを使用して、サード パーティのコンポーネントを使用せずに Excel ファイルのコンテンツを読み取ることができました。
このソリューションは、SharePoint REST サービスを使用して Excel データを読み取る方法を示しています。このアプローチに関するもう 1 つのポイントは、SharePoint ライブラリへの依存関係がまったくないため、サーバー側アセンブリもクライアント側アセンブリも参照されないことです。
前提条件: Excel Services サービス アプリケーションを構成する必要があります
エクセルデータを用意
以下のエクセルファイルを想定
ブックに次の項目が含まれています。
ファイルを SharePoint ライブラリにアップロードする前に、File -> Browse View Options -> choose Items in the Workbook
以下に示すように移動します。次に、ファイルを保存して、SharePointDocuments
ライブラリにアップロードします。

Excel Services 2010 REST API を介して Excel データを読み取る方法
次の例は、 Excel Services 2010 REST APIを使用してExcelテーブルのコンテンツを読み取る方法を示しています。
using System;
using System.Net;
namespace SharePoint.Client.Office
{
public class ExcelClient : IDisposable
{
public ExcelClient(Uri webUri, ICredentials credentials)
{
WebUri = webUri;
_client = new WebClient {Credentials = credentials};
}
public string ReadTable(string libraryName,string fileName, string tableName,string formatType)
{
var endpointUrl = string.Format("{0}/_vti_bin/ExcelRest.aspx/{1}/{2}/Model/Tables('{3}')?$format={4}", WebUri,libraryName,fileName, tableName, formatType);
return _client.DownloadString(endpointUrl);
}
public void Dispose()
{
_client.Dispose();
GC.SuppressFinalize(this);
}
public Uri WebUri { get; private set; }
private readonly WebClient _client;
}
}
使用法
この例は、JSON 形式を使用してテーブル コンテンツを読み取る方法を示しています。
var credentials = new NetworkCredential(userName,password,domain);
var client = new ExcelClient(webUri, credentials);
var tableData = client.ReadTable("Documents","ciscoexpo.xlsx", "CiscoSalesTable","html");
参考文献