我可以用Delphi很容易的完成!
解决方案 »
- mysql 中 怎么用语句怎么把mysqldump出来的东西弄到另一个数据库中
- mysql 行列转换
- 请问access如何导出表结构,并导入到mysql中?
- 求助,Like 的问题
- Mysql是否存在函数,可将result的结果(只有一列,N行)存为一个数组,请教了.
- mysql为何不能启动?
- 怎样升级Mysql???(送分第一)
- mysql 和 mysql max 版本的有什么区别?
- mysql 自定义函数传参和运算问题
- Mysql 嵌套查询
- 我在万网的虚拟主机没有MySQL数据库支持,我想自己开启一个SQL数据库支持,谁能提供有用的信息,进来详细说
- mysql怎么支持中文名做database?能解决吗?
<?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 -----
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:filename=EmplList.xls" );
header ("Content-Description: PHP/INTERBASE Generated Data" );
/*header("Content-type:application/octet-stream");
header("Content-Disposition:filename=test.xls"); */
//
// the next lines demonstrate the generation of the Excel stream
//
include("excel.inc.php");
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
?>