A couple of things to try:
1. Change the type attribute of the cfcontent tag to either 'application/unknown' and/or 'text/plain'
2. The downside is that you'd have to re-write a bit of code but check out Ben Nadel's POI CFC project I use this utility for all Excel files. Basically, you can easily create an Excel file, write it to the server and provide a download link. It's worked consistently for me across browsers and applications.
If the template is named math.cfm, the problem might be that excel 2007 does not like excel content created this way. There is a cfc out there that you can use to create actual excel files and this works a lot better. To find it, google "coldfusion export to excel poi"
Does the code run without error (save the Excel file to disk instead of delivering it to the browser for the purposes of testing) if you run it without the <cfheader> / <cfcontent> lines?
<cfheader name="Content-Disposition" value="attachment; filename=yourfile.xls">
Thanks alot everyone
I tried a few of the things and nothing by itsself worked but when I removed the cfcontent/cfheader I noticed a invalid field in one of the querys, once I removed that the process worked.
again, thanks alot.