2
使用PHP可以删除Excel表中的行吗?如何使用PHP删除Excel表中的行
使用PHP可以删除Excel表中的行吗?如何使用PHP删除Excel表中的行
看看只有你的PHP在Windows下托管工作。
如果PHPExcel *不起作用,这应该是一个好开始。
打开
$this->excel = new COM("Excel.sheet") or $this->error("error");
$this->workbook = $this->excel->application->Workbooks->Open($path) or $this->error("error");
关闭
$this->excel->application->ActiveWorkbook->Close("False");
unset($this->workbook);
unset($this->excel);
*我从来没有用过PHPExcel,但并不看坏
如果是Excel 2007中,您可以在http://www.phpexcel.net
优秀的解决方案,但它是非常重要的注意这段代码需要Windows托管的PHP;它不适用于Linux/UNIX(Mac?)。 – 2010-01-13 14:33:35