ContentType Excelsheet Title

Discussion in 'ASP General' started by rguarnieri, Jun 1, 2007.

  1. rguarnieri

    rguarnieri Guest

    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.
     
    rguarnieri, Jun 1, 2007
    #1
    1. Advertising

  2. 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"
     
    Bob Barrows [MVP], Jun 1, 2007
    #2
    1. Advertising

  3. "rguarnieri" <> wrote in message
    news:...
    > 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"
     
    Anthony Jones, Jun 3, 2007
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andreas Klemt
    Replies:
    1
    Views:
    498
    Steve C. Orr, MCSD
    Aug 10, 2003
  2. Replies:
    0
    Views:
    579
  3. Replies:
    9
    Views:
    6,919
  4. jelle79
    Replies:
    3
    Views:
    571
    jelle79
    May 29, 2008
  5. Bruno Alexandre

    GridView 2 ExcelSheet

    Bruno Alexandre, May 18, 2006, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    146
    Bruno Alexandre
    May 18, 2006
Loading...

Share This Page