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 ForumsSurveySurveyCan we export survey results to Excel?Can we export survey results to Excel?
Previous
 
Next
New Post
3/28/2007 4:57 PM
 

Hi There,

I have searched through the Survey Module...but I couldn't seem to find the answer.  Is it possible to export or download the survey results to Excel?  I know we can export the content...but it's not pretty.

It seems I would need an xml converter fils xsl (i think)...is this my only option?  Anything in the works to allow the download to excel of the survey results?

Thanks so much,

Jen

 
New Post
3/28/2007 9:02 PM
 
You cannot export to excel in the current version. It is planned for a future version.


Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
3/29/2007 3:22 AM
 

Jensta:

There is a quick and dirty solution to what you need to do, I ran into it by coincidence yesterday (and I want to emphasize quick and dirty).  You must run the statement below on the server where SQL is running.

use YourDNNDatabase;
insert into OPENROWSET('Microsoft.Jet.OLEDB.4.0',
'Excel 8.0;Database=D:\SurveyOut.xls;',
'SELECT * FROM [Sheet1$]')
select * from Surveys

There are a couple of things you must do for this to work.  First, you must create the file on the server before running the command or you'll get an error.  Second, you must enter the column names for the columns of the SQL table you will be exporting on the first row of the spreadsheet as column titles.  Notice that your SQL statement against the DNN database is the last line.  You can specify the columns you need but remember that the column names in the first row of the Excel file must match the column names of the SQL result.  Make sure the file is not open in Excel before running the command.

I tested this statement on SQL 2000 and 2005 and it worked fine.  In 2005 however, you must run the "SQL Server Surface Area Configuration" utility and allow "Ad Hoc Remote Queries" (for Enable OPENROWSET etc.)

I also found a piece of code to export data to Excel (or Word) from ASP.Net without having to create the file before hand.  I may put together a module for this later.

Carlos

 
New Post
3/29/2007 10:28 AM
 
Thank you Michael!...any insight as to when this might be included in a future release? Weeks, months, a year +?
 
New Post
3/29/2007 10:36 AM
 
Thank you Carlos!  I will check this out!
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsSurveySurveyCan we export survey results to Excel?Can we export survey results to Excel?


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