This works for me with IE 9 (and IE 9 in Compatibility mode):
FUNCTION ServeExcelDocument lcFile = FILETOSTR("c:\saved\Travel2012.xls") Response.ContentType="application/vnd.ms-excel" Response.Write(lcFile) ENDFUNC
and just saves the file to disk. Most other browsers just download the file. If you want more control you can also use the FileAttachment header. Look into Response.DownloadFile or Response.TransmitFile.
If you want to open the Excel document in the browser I think you need to send back a different format - .csv should work to open in Excel if it's just data.
+++ Rick ---
from Maui, Hawaii