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"
|