如何使用PHP在Excel表格中删除行
是否有可能使用PHP删除Excel表中的行?
只有当您的PHP托pipe在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