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>

관련자료

댓글 0
등록된 댓글이 없습니다.
Today's proverb
자신을 불행한 존재라고 생각하는 사람은 아직도 더 불행해질 여지가 남아있다. 아주 작은 일에도 큰 기쁨을 느끼는 사람에게는 그 어떤 불행도 위력을 상실해 버리고 만다. 그러나 아주 작은 일에도 기쁨을 느낄 수 있는 경지에 이르기까지는 어차피 여러 가지 형태의 불행을 감내하지 않을 수가 없다. 불행이란 알고 보면 행복이라는 이름의 나무 밑에 드리워진 행복만한 크기의 나무그늘 같은 것이다. (이외수 "흐린 세상 건너기" 中에서)