简体   繁体   中英

How to set border for merged cells in Pear Excel

如何在PHP Pear Spreadsheet Excel writer中设置合并单元格的边框?

We can writeBlank on the merged cell and apply your pre-defined format.

For Example

$format = [Define your format over here]

$worksheet->writeString( 0, 1, "some Text", $format);
$worksheet->writeBlank( 0, 2, $format);
$worksheet->setMerge(0,1,0,2);

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