Create a connection to Excel on a web server
Posted: Thu Mar 19, 2015 6:38 pm
Hello,
I've been trying to create an OLEDB connection to an Excel file on a web server using the following connection strings...
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\MyExcel.xls;Extended Properties="Excel 8.0;HDR=Yes;IMEX=1";
Provider=Microsoft.ACE.OLEDB.12.0;Data Source=c:\MyExcel.xlsx;Extended Properties="Excel 12.0 Xml;HDR=YES";
In my case I replace C:\MyExel.xls (xlsx) with a local path on the server.
The problem is that I get the error about the Microsoft.ACE.OLEDB.12.0 not being registered on the local machine, but I
do know that it is installed on my local machine because I can find the relevant dll file and Registry settings. And I can create
a connection to a local file without any issues.
I do know that there are no security restrictions accessing the file because I can type in a URL to the file and download it,
but maybe its not possible to create an OleDB connection to an excel file on a web server. If there isn't, can you suggest a way to connect to and report on an excel file on a web server?
I should add that I am using Stimulsoft Reports.Web Version 2014.1.1900 and Flash Player 16.0 for Windows
I've been trying to create an OLEDB connection to an Excel file on a web server using the following connection strings...
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\MyExcel.xls;Extended Properties="Excel 8.0;HDR=Yes;IMEX=1";
Provider=Microsoft.ACE.OLEDB.12.0;Data Source=c:\MyExcel.xlsx;Extended Properties="Excel 12.0 Xml;HDR=YES";
In my case I replace C:\MyExel.xls (xlsx) with a local path on the server.
The problem is that I get the error about the Microsoft.ACE.OLEDB.12.0 not being registered on the local machine, but I
do know that it is installed on my local machine because I can find the relevant dll file and Registry settings. And I can create
a connection to a local file without any issues.
I do know that there are no security restrictions accessing the file because I can type in a URL to the file and download it,
but maybe its not possible to create an OleDB connection to an excel file on a web server. If there isn't, can you suggest a way to connect to and report on an excel file on a web server?
I should add that I am using Stimulsoft Reports.Web Version 2014.1.1900 and Flash Player 16.0 for Windows