ASP & Excel

Discussion in 'ASP General' started by Oded, Dec 13, 2004.

  1. Oded

    Oded Guest

    Hi,
    I'm trying to export an ASP based report to Excel while preserving its
    display properties. I've added:
    Response.ContentType="application/vnd.ms-excel", and it works fine for
    several clients. For other clients it displays an emptry excel sheet.
    I'm not sure, but i think it has something to do with the excel version
    installed on clients - empty sheets were displayed for Excel 2000 clients
    while clients running Excel 2002 displayed the report correctly.
    If I add: Response.AddHeader("attachment","file_name=%file_name%"), all
    clients display the data correctly but the styles are lost.
    If anyone knows of a solution other than reformatting the report for excel,
    it will be very helpful.
    Thanks
    Oded, Dec 13, 2004
    #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. Anonieko
    Replies:
    2
    Views:
    7,291
    JackStraw73
    Feb 12, 2008
  2. Robbe Morris [C# MVP]

    asp.net extracting excel charts from an Excel file

    Robbe Morris [C# MVP], Dec 15, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    463
    Robbe Morris [C# MVP]
    Dec 15, 2006
  3. =?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,481
    =?Utf-8?B?c2hhc2hhbmsga3Vsa2Fybmk=?=
    Oct 24, 2007
  4. Grey
    Replies:
    4
    Views:
    1,936
    Mark Rae [MVP]
    Oct 17, 2007
  5. fniles
    Replies:
    6
    Views:
    630
    Karl E. Peterson
    Apr 27, 2009
Loading...

Share This Page