은 다음과 같이 엑셀 :html로 문제를 해결하십시오! 내가 인쇄하고
header("Content-Type: application/vnd.ms-excel; charset=utf-8");
header("Content-type: application/x-msexcel; charset=utf-8");
header("Content-Disposition: attachment; filename=".str_replace(' ', '_', $title).".xls");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: private",false);
내용은 일반 HTML입니다. 나는이를 다운로드 할 때 문제는, 나는 내가 '예', 나는이를 얻을 때 초기 확인 상자가
The file you are trying to open 'File_name.xls', is in a different format than specified by the file extension. Verified that the file is not corrupted and is from a trusted source before opening the file. Do you want to open the file now?
asp.net, php, asp, cold fusion ... 등 –
어떤 언어로이 xls 파일을 "인쇄하고 있는지"확실하지 않습니다. 그리고 내가 이해한다고 생각하는 것부터 xls 확장자를 가진 HTML 파일을 작성하고 있습니까? – keepitreall89
@geek, PHP입니다. @ keepitreal89, 네, mysql에서 PHP를 사용하여 가져온 데이터를 가져온 다음 html 테이블을 사용하여 표시합니다. –