php - How to delete hyperlink from cell in phpexcel -
i trying edit sheet , delete rows, when so, cells email address (with mailto hyperlink) retain hyperlink although cell values replaced new cell shifting place.
for example cell a1 has email address abc@abc.com, cell a2 had blank cell, when delete row 1 using $sheet->removerow fucntion, row gets deleted, a1 blank cell mailto link abc@abc.com
i unable delete hyperlink on cell using phpexcel
i have tried following
$cell->gethyperlink()->seturl();
$cell->sethyperlink(new phpexcel_cell_hyperlink(''));
any appreciated
pass value null in sethyperlink method against cell
from looking @ code, finds worksheet cell attached , removes hyperlink if value null
$cell->sethyperlink(null);
worksheet.php https://github.com/phpoffice/phpexcel/blob/1.8/classes/phpexcel/worksheet.php#l2702
cell.php https://github.com/phpoffice/phpexcel/blob/1.8/classes/phpexcel/cell.php#l461
Comments
Post a Comment