in reply to Re^2: Force Download to a .xls file
in thread Force Download to a .xls file
for the naming issue, you could return a redirection header to the excel-file instead of printing the files contents. that way the name would be displayed correctly.