色综合图-色综合图片-色综合图片二区150p-色综合图区-玖玖国产精品视频-玖玖香蕉视频

您的位置:首頁技術(shù)文章
文章詳情頁

php生成EXCEL的東東

瀏覽:113日期:2022-07-20 17:33:43
可以通過PHP來產(chǎn)生EXCEL檔.;;teaman翻譯 ---------------------------- Excel Functions ---------------------------- 將下面的代碼存為excel.php ,然后在頁面中包括進來 然后調(diào)用 1. Call xlsBOF();; 2. 將一些內(nèi)容寫入到xlswritenunber() 或者 xlswritelabel()中. 3.然后調(diào)用 Call xlsEOF() 也可以用 fwrite 函數(shù)直接寫到服務(wù)器上,而不是用echo 僅僅在瀏覽器上顯示。 ;;;<?php // ----- begin of function library ----- // Excel begin of file header function xlsBOF() { ;;;;echo pack("ssssss", 0x809, 0x8, 0x0, 0x10, 0x0, 0x0);;;;;;;return; } // Excel end of file footer function xlsEOF() { ;;;;echo pack("ss", 0x0A, 0x00); ;;;;return; } // Function to write a Number (double) into Row, Col function xlsWriteNumber($Row, $Col, $Value) { ;;;;echo pack("sssss", 0x203, 14, $Row, $Col, 0x0); ;;;;echo pack("d", $Value); ;;;;return; } // Function to write a label (text) into Row, Col function xlsWriteLabel($Row, $Col, $Value ) { ;;;;$L = strlen($Value); ;;;;echo pack("ssssss", 0x204, 8 + $L, $Row, $Col, 0x0, $L); ;;;;echo $Value; return; } // ----- end of function library ----- ?> //;;// To display the contents directly in a MIME compatible browser;;// add the following lines on TOP of your PHP file: <?php header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header ("Last-Modified: " . gmdate("D,d M YH:i:s") . " GMT"); header ("Cache-Control: no-cache, must-revalidate");;;;;;header ("Pragma: no-cache");;;;;;header ('Content-type: application/x-msexcel'); header ("Content-Disposition: attachment; filename=EmplList.xls" );;;header ("Content-Description: PHP/INTERBASE Generated Data" ); // // the next lines demonstrate the generation of the Excel stream // xlsBOF();;;;// begin Excel stream xlsWriteLabel(0,0,"This is a label");;;// write a label in A1, use for dates too xlsWriteNumber(0,1,9999);;;// write a number B1 xlsEOF(); // close the stream ?>
標(biāo)簽: excel
主站蜘蛛池模板: 国内精品91最新在线观看 | 免费乱人伦| 成年网站在线在免费播放 | 久久视频在线观看免费 | 国产精品毛片久久久久久久 | 久久91精品国产99久久yfo | 久久国产免费观看精品3 | 中文国产成人精品久久96 | 激情欧美日韩一区二区 | 国产99久久久久久免费看 | 日本一级高清片免费 | 一区二区三区高清不卡 | 美国美女一级毛片免费全 | 91视频一区二区 | 亚洲国产精品久久卡一 | 欧美一级免费片 | 欧美白人最猛性xxxxx | 国产精品成人观看视频国产 | 全部孕妇毛片丰满孕妇孕交 | 亚洲成av人影片在线观看 | 国产99久久久久久免费看 | 欧美精品三区 | 亚洲综合美女 | 国产乱肥老妇精品视频 | 成人免费国产欧美日韩你懂的 | 欧美精品99久久久久久人 | 美女网站在线观看视频18 | 久久99热精品免费观看k影院 | 欧美美女网站 | 久久99精品久久久久久三级 | 免费一级成人毛片 | 亚洲黄色软件 | 国产美女又黄又爽又色视频免费 | 欧美成人免费网在线观看 | 综合久久91 | 久久精品欧美日韩精品 | 国产精品合集一区二区 | 欧美日韩一区二区综合在线视频 | 天天综合天天看夜夜添狠狠玩 | 久久精品国产亚洲网站 | 亚洲综合91社区精品福利 |