D
D
denism3002016-12-12 20:25:01
PHP
denism300, 2016-12-12 20:25:01

How to insert a link into a cell using PHPExcel?

Tell me how to use the PHPExcel library to insert a link into the generated excel file of the format: <link>link_text<link> I
found such a method in the open spaces, but it does not work

$active_sheet->getCell('A:1')->getHyperlink()->setUrl($url);
$active_sheet->getCell('A:1')->getHyperlink()->setTooltip('link_text');

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Shamanov, 2016-12-12
@SilenceOfWinter

depends, among other things, on the format in which the data is saved, see examples from the examles folder and take the version that is on github, the site is buggy.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question