.xlsx read without installed ms office2007 on server.
any other way to read xlsx file without office driver
.xlsx read without installed ms office on server
7 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Digamber Patil10 pointsPosted Jun 17, 2011, 2:16 AM EDT
Can you give me a sample code for that so i can implement that one.
Suthish NairRank #93 · 22.6K pointsPosted Jun 17, 2011, 3:45 AM EDT
Inserting & Retrieving records from M.S.Excel-2007 using oledb in C#.net
http://www.c-sharpcorner.com/UploadFile/e628d9/4038/
Digamber Patil10 pointsPosted Jun 17, 2011, 5:28 AM EDT
(MY config is Win7 Enterprise, ASP.net 3.5 )
Suthish NairRank #93 · 22.6K pointsPosted Jun 17, 2011, 5:34 AM EDT
using (OleDbConnection obj = new OleDbConnection())
{
obj.ConnectionString = "---";
obj.Open();
using (DataTable dt = obj.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, null))
{
}
}
http://www.connectionstrings.com/excel
Digamber Patil10 pointsPosted Jun 17, 2011, 5:41 AM EDT
The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.
Suthish NairRank #93 · 22.6K pointsPosted Jun 17, 2011, 10:53 AM EDT
Download from here and install the drivers..
Neboja12 pointsPosted Jul 16, 2014, 1:16 AM EDT
Hi Digamber, here is another way you can try, just add this .NET DLL for workbooks (Excel files).
It is pretty easy to use it, for example here is how you would read excel workbooks in C# code behind:
// Load Excel file. var workbook = ExcelFile.Load(excelStream, LoadOptions.XlsxDefault); // Select active worksheet. var worksheet = workbook.Worksheets.ActiveWorksheet; // Retrieve the value of first cell. var value = worksheet.Cells["A1"].Value;1 short reply
Suthish NairRank #93 · 22.6K pointsPosted Jun 17, 2011, 2:01 AM EDT