2
我使用PHPExcel类写入excel文件。
phpExcel,如何在excel中写上标
我的问题是:如何与标单元写入数据,如果我的价值是(M<sup>3</sup>)
到M (在Excel)
// $data['dataLashing'][$i]['units_name'] - it`s a value from db in LOOP
$getExcelObject
->mergeCells("A$startRow:E$startRow")->setCellValue("A$startRow",$data['dataLashing'][$i]['material'])
->mergeCells("F$startRow:G$startRow")->setCellValue("F$startRow",$data['dataLashing'][$i]['units_name'])
->mergeCells("H$startRow:I$startRow")->setCellValue("H$startRow",$data['dataLashing'][$i]['quantity']);
是它了工作,但在数据库中,我的价值观是内容类似这样的中号一个html标记。我想这样做动态 – Dezigo 2011-12-14 12:10:25
转换为HTML标签上标.. – Dezigo 2011-12-14 12:11:05