PHP & Others

엑셀 excel 2007 포맷

페이지 정보

본문

<? 
header("Content-type: application/vnd.ms-excel"); 
header("Content-Disposition: attachment; filename=엑셀.xls"); 
header("Content-Description: PHP4 Generated Data"); 
header("Content-charset=euc-kr"); 

echo"<?xml version='1.0' encoding='euc-kr'?>"; 
?> 

<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" 
 xmlns:o="urn:schemas-microsoft-com:office:office" 
 xmlns:x="urn:schemas-microsoft-com:office:excel" 
 xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" 
 xmlns:html="http://www.w3.org/TR/REC-html40">  
 <Worksheet ss:Name="aa"> 
  <Table> 
    <Row> 
    <Cell><Data ss:Type="String">a11</Data></Cell> 
    <Cell><Data ss:Type="String">a12</Data></Cell> 
    <Cell><Data ss:Type="String">a13</Data></Cell> 
    </Row> 
    <Row> 
    <Cell><Data ss:Type="String">a21</Data></Cell> 
    <Cell><Data ss:Type="String">a22</Data></Cell> 
    <Cell><Data ss:Type="String">a23</Data></Cell> 
    </Row> 
  </Table> 
 </Worksheet> 
 <Worksheet ss:Name="bb"> 
  <Table> 
    <Row> 
    <Cell><Data ss:Type="String">b11</Data></Cell> 
    <Cell><Data ss:Type="String">b12</Data></Cell> 
    <Cell><Data ss:Type="String">b13</Data></Cell> 
    </Row> 
    <Row> 
    <Cell><Data ss:Type="String">b21</Data></Cell> 
    <Cell><Data ss:Type="String">b22</Data></Cell> 
    <Cell><Data ss:Type="String">b23</Data></Cell> 
    </Row> 
  </Table> 
 </Worksheet> 
</Workbook>

관련자료

등록된 댓글이 없습니다.
Today's proverb
우리의 꿈은, 뒤에 오는 사람들이 우리를 딛고 우리 위에서 이루게 하는 것입니다. 나는 평생을 창조적인 작업을 위해서 살아왔습니다. 누가 하라고 해서 한 것이 아니라 그것이 나의 삶 그 자체의 즐거움이었기 때문입니다. 현실을 직시하며 현재의 수준을 유지하라. 그리고 더 먼 곳을 향하는 시야를 가져라.