ASP.net and excel files

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • c83
    New Member
    • Jun 2007
    • 24

    ASP.net and excel files

    some time ago i wrote an asp.net application which generated excel files using Microsoft.Offic e.Interop.Excel . It is working but it takes a lot of time to generate the excel file.
    Yeasterday i modyfied it and i am generating them like HTML files and then send them to the user like:

    Code:
    Response.ContentType = "application/vnd.ms-excel";
    Response.AddHeader( "Content-Disposition", "attachment;	filename=result.xls" );
    and i must say that it is workin 10 times faster and does not require any use of MS Excel.

    My Excel 2003 opens this file without any problems, works perfectly. My question is: Is this a good ideea to generate xls files this way....or some earlyer version of Excel will have problem opening this files??
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    What testing procedures have you run?

    Comment

    • c83
      New Member
      • Jun 2007
      • 24

      #3
      Originally posted by kenobewan
      What testing procedures have you run?
      I don-t have other version of MS Excel, this is why i asked it on the forum.
      I found that many developers uses this method to export a DataGrid to excel...and i try it. But i have not found any information about the compatibility with excel version.

      Comment

      Working...