-2

How coul i Make a text Box like below image ? i want to have that 77,25 inside a text box.

enter image description here

i used syntax

        $richText->createText('plain text');
        $payable = $richText->createTextRun('rich text');
        $payable->getFont()->setBold(true);
        $sheet->getCell('A1')->setValue($richText);

But none off this syntax made a textbox-like in excel output.

Is it possible to make textbox using phpsreadsheet library ?

Gagantous
  • 432
  • 6
  • 29
  • 69

2 Answers2

2

There is no support for Textboxes see answer from mark-baker

Stackoverflow Article

1

There's a workaround. Link your textbox to a hidden cell. You can then update this cell and the value will show in your textbox.

flaggalagga
  • 451
  • 5
  • 14