开发者

how to delete rows in excel sheet using PHP

Is it possible to delete rows in excel sheet using PHP 开发者_JAVA百科?


Only works if your PHP is hosted under Windows.

This should be a good start if PHPExcel* doesn't work.


Open

$this->excel = new COM("Excel.sheet") or $this->error("error");
$this->workbook = $this->excel->application->Workbooks->Open($path) or $this->error("error");

Close

$this->excel->application->ActiveWorkbook->Close("False");
unset($this->workbook);
unset($this->excel);

*I've never used PHPExcel, but it doesn't look bad


If it's Excel 2007 you can take a look at http://www.phpexcel.net

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜