上記のコメントによると、強制的にダウンロード オプションを設定することしかできません。このために、この方法でヘッダーを設定できます-
header("Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
header("Content-Disposition: attachment;filename=\"filename.xlsx\"");
header("Cache-Control: max-age=0");
リファレンス - PHP Excel リーダー
その他のオプションについては、チート シートも確認できます -チート シート
ここで読むのが最善の方法ですが - Codeplex
編集
このようなことをしてください -
$excel = new PHPExcel();
header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
header('Content-Disposition: attachment;filename="your_name.xls"');
header('Cache-Control: max-age=0');
// Do your stuff here
$writer = PHPExcel_IOFactory::createWriter($excel, 'Excel5');
// This line will force the file to download
$writer->save('php://output');