<% Response.buffer = true Response.ContentType = "application/vnd.ms-excel" Response.AddHeader "Content-Disposition", "NombredocExcel.xls;" %>