I have exported an Excel file adn emailed it to a BlackBerry 8820. All it shows is the HTML markup that makes up the tables. It works fine on the desktop, and when I generate an Excel file straight from Excel, it opens fine on the BlackBerry. Any idea why it won't open correctly?
header('Content-Type:application/msexcel');
header('Content-Disposition: attachment; filename=download.xls');
header('Pragma: no-cache');
header('Expires: 0');