채택완료

엑셀다운

엑셀다운 할때 스타일을 주느라

 

662111144_1608854988.648.png

 

이런식으로 table 로 스타일을 짰는데 다운 받을때

 

원본을 신뢰할 수 없는 어쩌고 ... 경고창 안 뜨는 방법이 어떻게 될까요?

|

답변 2개

채택된 답변
+20 포인트

    header('Pragma: public');
    header('content-transfer-encoding: binary');

    echo "<html><head>";
    echo "<meta http-equiv='Content-Type' content='application/vnd.ms-excel;charset=uft8'>";
    echo "</head><body>";
    echo "<table border=1 style='font-family:sans-serif, Verdana, Genevaf; font-size:10pt;'><tr>";

    <td width=150 align=center><strong>PRODUCT</strong></td>

    <td align=center><strong>QUANTITY</strong></td>

</tr>\n";

 

이런식으로 하시면 될거에요

아...워닝뜨는곳의 위치를 찾아서 해결하셔도 될것 같고 그누쵸딩님의 소스를 쓰셔도 될것 같습니다. 

답변을 작성하려면 로그인이 필요합니다.