こんにちは、レポートを .xls 形式でエクスポートしていますが、編集後にファイルを保存しようとすると、ファイルの種類が Web ページであるという警告が表示されます。Excel 97-2003 ワークブックに入れたいです。以下は私のコードです
if($exportType == "xls")
{
header("Content-type: application/x-msexcel");
header("Content-Disposition: attachment; filename=DD_Report.xls");
header("Content-Description: PHP/MYSQL Generated Data");
header('Content-Type: application/vnd.ms-excel');
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
$strMainStart = "<table align='center' border='1' width='100%'>";
$strMainEnd = "</table>";
$strRowStart = "<tr>";
$strRowEnd = "</tr>";
$strColumnStart = "<td>";
$strColumnEnd = "</td>";
$strBoldStart = "<b>";
$strBoldClose = "</b>";
}