xlsx 확장자로 엑셀파일 추출하는 법...

xlsx 확장자로 엑셀파일 추출하는 법...

QA

xlsx 확장자로 엑셀파일 추출하는 법...

답변 1

본문

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 로 뽑으려면 어떻게 해야하나요? 

이 질문에 댓글 쓰기 :

답변 1

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 125,873
© SIRSOFT
현재 페이지 제일 처음으로