我使用以下代码生成excel表,这里我无法在codeigniter中生成带粗体字符的标题
以下代码中指定的标题
$ci = &get_instance() ;
$ci->load->helper( 'download' ) ;
$headers = '';
$data = '';
$fields = array("Date of Payment",
"Payment ID",
"Payee Name",
"Paid Amount");
foreach ( $fields as $field ) {
$headers .= "<b>".$field . "</b>\t" ;
}
执行
$filename = $filename_status."_Report_".date( 'd_M_Y' );
force_download( $filename . ".xls", $headers . "\n" . $data ) ;
以下代码指定了标题部分,但它无法正常工作
$headers .= "<b>".$field . "</b>\t" ;