我想在单元格中插入注释.我正在尝试使用代码进行评论,但它没有在创建的Excel中显示评论.
我正在创建.xls扩展名.
@H_404_5@我正在创建.xls扩展名.
$objPHPExcel->getActiveSheet()->getComment('E11')->setAuthor('Efusionsoft'); $objCommentRichText = $objPHPExcel->getActiveSheet()->getComment('E11')->getText()->createTextRun('PHPExcel:'); $objCommentRichText->getFont()->setBold(true); $objPHPExcel->getActiveSheet()->getComment('E11')->getText()->createTextRun("\r\n"); $objPHPExcel->getActiveSheet()->getComment('E11')->getText()->createTextRun('Total amount on the current invoice,excluding VAT.');