Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsReportsReportsExcel file Connection StringExcel file Connection String
Previous
 
Next
New Post
2/25/2010 8:41 AM
 

I'm trying to figure out the connection string for an Excel file for Reports module. I tried this one, but couldn't succeed:

Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\wwwroot\Portals\0\test1.xls;Extended Properties="Excel 8.0;HDR=Yes;IMEX=1";

I choose: Generic ADO.Net Data Source, OleDb Data Provider.

I tried to look here for help: http://connectionstrings.com/excel but couldn't get the file path!!!

thanx

 
New Post
2/25/2010 10:29 AM
 

I found this link, http://www.nwds-ak.com/WebResources/D... and tried many many many paths after Data Source....why why why it doesn't happen anything?

Here's the error report:
There was an error while executing the configured data source: An error occurred while executing the data source (Code: -2147467259): 'e:\wwwroot\Portals\0\test1.xls' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.

--

Just want to add that on my localhost personal pc, with the same file (test1.xls), this connection strings works perfectly:

Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\test1.xls;Extended Properties="Excel 8.0;HDR=Yes;IMEX=1"

I really don't know how to point out the path (Data Source) for internet (server) file for DNN installation.

 
New Post
2/26/2010 10:35 AM
 

I found the path, everybody facing it, should go to it's Hosting Control Panel -> View Space Summery or something like that -> Files Location section.

 
New Post
8/22/2011 11:39 AM
 
A late reaction, but, people with excel file connection strings will end up at this post. So, this is not just for you Dimitar.

In DNN6+Reports, the connection string to a Office 2007 file looks quite similar.
Provider=Microsoft.ACE.OLEDB.12.0;Data Source=c:\myFolder\myExcel2007file.xlsx;Extended Properties="Excel 12.0 Xml;HDR=YES"; (from http://www.connectionstrings.com/excel-2007)

The path to the data source must be an absolute path.
Then to make things work you must have a SQL query in the Query box. That query selects from a database area you created in your excel file "Select * From ProjectOverview;".

I hope this helps somebody.
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsReportsReportsExcel file Connection StringExcel file Connection String


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out