Generate excel sheet from classic asp on click of button
问题 I want to create an excel sheet from click of button. These excel sheet will contain report which is generated on classic asp page. When user clicks on button then an excel sheet should be created which will have the same report as page have 回答1: This header works fine: <% Response.AddHeader "Content-Disposition", "attachment;filename=NOMBRE_ARCHIVO.xls" Response.ContentType = "application/vnd.ms-excel" %> For small tables, try this example in html/javascript: <html> <body> <table id="tabla"