xlsx 확장자로 엑셀파일 추출하는 법...
본문
header("Content-type: application/vnd.ms-excel");
header("Content-Disposition: attachment; filename=file.xls");
header("Content-Description: PHP4 Generated Data");
요런 코드로 엑셀 추출하고 있는데요...
xls 말고 xlsx 로 추출하고 싶은데..
header("Content-type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
header("Content-Disposition: attachment; filename=file.xlsx");
header("Content-Description: PHP4 Generated Data");
단순히 이렇게만 수정하면 안되나봅니다.
아예 엑셀파일이 뽑히질 않네요;
xlsx 로 뽑으려면 어떻게 해야하나요?
답변을 작성하시기 전에 로그인 해주세요.