简体   繁体   中英

Text box in phpspreadsheet?

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

在此处输入图片说明

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 ?

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

Stackoverflow Article

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM