Solved

ASP Application - Excel Export

Posted on 2009-05-19
6
308 Views
Last Modified: 2012-05-07
We have an ASP 3.0 application that uses SQL 2005 for the database.  One feature we have is that ability to export database records to an excel spreadsheet.  For example a user will be on a page and click export records.  A window will pop up and prompt them to save or open the file.  If they click save, it saves to the desktop (or any location they save it to) very fast.  The file itself is only 2.5MB.  It has about 4,000 records and about 50 columns of data.  We think there is no problem exporting the data to excel as the file saves very fast.  However, when you try to open the file, it can take up to 5 minutes to open.  Excel just hangs as it is trying to open the file.  The file itself is not very big, but we think this may be because when the file is exporting to excel, it may be exporting all HTML in the background (not sure if that is correct though).  We are just using standard ASP 3.0 code to export that data.  Can someone please suggest the best method for exporting this file to excel without the issue we are having.  It still must be done in ASP as the applicaiton is an ASP app.  

Thank You --
0
Comment
Question by:sam1492
  • 2
  • 2
6 Comments
 
LVL 4

Expert Comment

by:TimSledge
Comment Utility
Check out www.speadsheetgear.com.  Although I'm not sure it works with classic ASP.  You are referring to ASP and not ASP.Net right?
0
 

Author Comment

by:sam1492
Comment Utility
Thanks for the site.  It seems like it is for ASP.Net while our app is classic ASP.  
0
 
LVL 30

Accepted Solution

by:
Wayne Barron earned 125 total points
Comment Utility
Tim
Link is no good.

Try out the following (I have used these in the past)
Export Data to Excel using ASP
http://www.theukwebdesigncompany.com/articles/article.php?article=730

Good Luck
Carrzkiss
0
 
LVL 30

Expert Comment

by:Wayne Barron
Comment Utility
Sam did you see Tim's link? Were you able to view the page?
As I got a [Sorry, 'www.speadsheetgear.com' does not exist or is not available.]

Anyway, hope that my information helps you.
Good Luck
Carrzkiss
0
 
LVL 4

Assisted Solution

by:TimSledge
TimSledge earned 125 total points
Comment Utility
Sorry, I did not spell it correctly.  Try this:  http://www.spreadsheetgear.com
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Dealing with unintended Excel Active-X resizing quirks (VBA code simulates "self correction") David Miller (dlmille) Intro Not everyone is a fan of Active-X controls in spreadsheets (as opposed to the UserForm approach, the older Form controls …
Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now