Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2004

    Unanswered: How to export recordset to xls or csv

    I am trying to create a small little reporting app in asp for our sales guys and have the queries going to a html table. I was wondering how I could add a button so my users could download the recordset to there computers.

  2. #2
    Join Date
    Dec 2003

    data in excel format on HTML page

    If you want to display the data in excel format on HTML page, you need to add the following code at the beginning of your asp code:

    Response.ContentType = "application/"

    And also you need to remove all templates including header, footer, left or right bar. In this ASP file, you only use the table. That's it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts