ContentType Excelsheet Title

ContentType Excelsheet Title

am 01.06.2007 16:51:18 von rguarnieri

Hi!, I'm using

Response.ContentType="application/vnd.ms-excel"

to show an html table over excel sheet and I need to change the
excelsheet title, does anyone know how to do that?, now it's shows me
the name of the asp page.

Thank you.

Re: ContentType Excelsheet Title

am 02.06.2007 00:05:07 von reb01501

rguarnieri wrote:
> Hi!, I'm using
>
> Response.ContentType="application/vnd.ms-excel"
>
> to show an html table over excel sheet and I need to change the
> excelsheet title, does anyone know how to do that?, now it's shows me
> the name of the asp page.
>
> Thank you.
Create a test spreadsheet that does what you want. Convert it to html and
inspect the generated html to see what you have to include in your file to
make it do what you want.

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

Re: ContentType Excelsheet Title

am 03.06.2007 18:47:00 von Anthony Jones

"rguarnieri" wrote in message
news:1180709478.291623.168860@q66g2000hsg.googlegroups.com.. .
> Hi!, I'm using
>
> Response.ContentType="application/vnd.ms-excel"
>
> to show an html table over excel sheet and I need to change the
> excelsheet title, does anyone know how to do that?, now it's shows me
> the name of the asp page.
>
> Thank you.
>

Response.AddHeader "Content-Disposition", "filename=myname.xls"