Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > asp & excel

Reply
Thread Tools

asp & excel

 
 
bob
Guest
Posts: n/a
 
      09-11-2004
Hi All,

I've an asp page which brings back a query and displays it in a table. The
query takes around 30 seconds. Once the page displays they will have an
option to send it to excel. From the examples I've seen they all require the
query to be re-ran again in asp (i.e. server side scripting) and as it takes
30 seconds to start with I want to try and take out the repeat of the query.
Does anyone know of any way you can do this in asp by passing the already
executed table to asp or via any other method?

Many thanks,
Rob


 
Reply With Quote
 
 
 
 
Tom Kaminski [MVP]
Guest
Posts: n/a
 
      09-13-2004
"bob" <> wrote in message
news:chusjb$oot$...
> Hi All,
>
> I've an asp page which brings back a query and displays it in a table.
> The query takes around 30 seconds. Once the page displays they will have
> an option to send it to excel. From the examples I've seen they all
> require the query to be re-ran again in asp (i.e. server side scripting)
> and as it takes 30 seconds to start with I want to try and take out the
> repeat of the query. Does anyone know of any way you can do this in asp by
> passing the already executed table to asp or via any other method?


Depending on how much data is returned, I guess you could write the HTML
table to a session variable.

--
Tom Kaminski IIS MVP
http://www.microsoft.com/windowsserv...y/centers/iis/
http://mvp.support.microsoft.com/
http://www.iisfaq.com/
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://www.tryiis.com


 
Reply With Quote
 
 
 
 
M Bishop
Guest
Posts: n/a
 
      09-17-2004
We return the recordset as a response.write and use script to load excel and
populate the spreadsheet...

-mike


"Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message
news:ci43u3$...
> "bob" <> wrote in message
> news:chusjb$oot$...
> > Hi All,
> >
> > I've an asp page which brings back a query and displays it in a table.
> > The query takes around 30 seconds. Once the page displays they will have
> > an option to send it to excel. From the examples I've seen they all
> > require the query to be re-ran again in asp (i.e. server side scripting)
> > and as it takes 30 seconds to start with I want to try and take out the
> > repeat of the query. Does anyone know of any way you can do this in asp

by
> > passing the already executed table to asp or via any other method?

>
> Depending on how much data is returned, I guess you could write the HTML
> table to a session variable.
>
> --
> Tom Kaminski IIS MVP
> http://www.microsoft.com/windowsserv...y/centers/iis/
> http://mvp.support.microsoft.com/
> http://www.iisfaq.com/
> http://www.iistoolshed.com/ - tools, scripts, and utilities for running

IIS
> http://www.tryiis.com
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
From an ASP page, is there a way write to an EXCEL file without having EXCEL installed on the IIS machine ? fniles ASP General 6 04-27-2009 10:33 PM
How to return an excel file or excel data from ASP.NET Anonieko ASP .Net 2 02-12-2008 07:03 PM
Problem with Excel reports ::::Excel 2003 Migration To Excel 2007 =?Utf-8?B?c2hhc2hhbmsga3Vsa2Fybmk=?= ASP .Net 15 10-24-2007 01:34 PM
Export to excel in asp.net using excel template Grey ASP .Net 4 10-17-2007 08:08 AM
asp.net extracting excel charts from an Excel file Robbe Morris [C# MVP] ASP .Net 0 12-15-2006 03:03 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57