Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > export to Excel - multiple sheets & renaming sheets

Reply
Thread Tools

export to Excel - multiple sheets & renaming sheets

 
 
Carl Corcoran
Guest
Posts: n/a
 
      11-12-2003
I'm developing a website for work that exports some reports to excel.
I am using the...

Response.AddHeader "Content-Disposition","attachment;filename=report.xls"
Response.ContentType = "application/vnd.ms-excel"

....strategy to do this. It works wonderfully except I cannot figure
out how to do two things:

1) specify a name for the worksheet that's exported (it names the
worksheet "blah.asp?q=123" when the user wants to see "Monthy Quotas"

2) generate multiple worksheets. The exported spreadsheet should have
about 6 tabs on the bottom that all contain different information in
the same report.

Please help!
 
Reply With Quote
 
 
 
 
Bob Barrows
Guest
Posts: n/a
 
      11-12-2003
Carl Corcoran wrote:
> I'm developing a website for work that exports some reports to excel.
> I am using the...
>
> Response.AddHeader
> "Content-Disposition","attachment;filename=report.xls"
> Response.ContentType = "application/vnd.ms-excel"
>
> ...strategy to do this. It works wonderfully except I cannot figure
> out how to do two things:
>
> 1) specify a name for the worksheet that's exported (it names the
> worksheet "blah.asp?q=123" when the user wants to see "Monthy Quotas"
>
> 2) generate multiple worksheets. The exported spreadsheet should have
> about 6 tabs on the bottom that all contain different information in
> the same report.
>
> Please help!



Create a spreadsheet in Excel that has the features you want, then save it
as html. Look at the source to see how the features are implemented.

HTH,
Bob Barrows

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


 
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
Dealing with multiple excel sheets Rohan Python 2 08-07-2007 06:31 PM
Upload excel (multiple sheets) data into sql server Pk ASP General 1 07-17-2006 03:23 PM
using Microsoft Excel image for Export to Excel button =?Utf-8?B?U3JpZGhhcg==?= ASP .Net 0 12-09-2005 08:58 PM
Export datagrid to excel sheets VK ASP .Net 1 04-15-2005 07:40 PM
Export to multiple excel sheets RichpU ASP General 1 01-03-2005 07:55 PM



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