Create an Excel File from and ASP page

Discussion in 'ASP General' started by Cathy Bro, Sep 25, 2003.

  1. Cathy Bro

    Cathy Bro Guest

    I have been able to create and Active Server Page that when I link to
    it will ask if I want to download to an excel file which I do want. It
    works well, but there is one thing that I haven't been able to get to
    work yet.

    The ASP page has a logo picture in it and I want the picture to
    download into the excel file also. It doesn't. My code is the
    following:

    Response.ContentType = "application/vnd.ms-excel"
    Response.Buffer = true
    Response.Clear
    Response.AddHeader "Content-Disposition",
    "attachment;filename=svra_excel.xls"

    <!--#INCLUDE FILE="svra_report.asp"-->

    the svra_report.asp is another page with the excel info in it.

    Does anyone know how I can get the logo to download also?

    Thanks.
    Cathy Bro, Sep 25, 2003
    #1
    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. Luis Esteban Valencia
    Replies:
    1
    Views:
    1,371
    Carl Prothman [MVP]
    Jan 12, 2005
  2. Replies:
    1
    Views:
    1,778
    extentechjohn
    Nov 21, 2006
  3. Jona
    Replies:
    2
    Views:
    442
    Victor Bazarov
    Jul 6, 2007
  4. =?Utf-8?B?c2hhc2hhbmsga3Vsa2Fybmk=?=

    Problem with Excel reports ::::Excel 2003 Migration To Excel 2007

    =?Utf-8?B?c2hhc2hhbmsga3Vsa2Fybmk=?=, Oct 5, 2007, in forum: ASP .Net
    Replies:
    15
    Views:
    1,484
    =?Utf-8?B?c2hhc2hhbmsga3Vsa2Fybmk=?=
    Oct 24, 2007
  5. fniles
    Replies:
    6
    Views:
    635
    Karl E. Peterson
    Apr 27, 2009
Loading...

Share This Page