Question

I need to change the text of header from lighter to bold of the csv . I am using fputcsv() of php to generate to csv file.

 fputcsv($output,array('Report','Entitlement Report'));

This is the basic code which I am using to print the header of my csv file . Any idea to accomplish this or any example

Thanks in advance

Was it helpful?

Solution

You can't achieve this because CSV file doesn't support the font style.

PS: CSV file could be opened with Excel, but it is not Excel file format, doesn't support any style.

OTHER TIPS

XLS / XLSX format supports visual styles. List of libraries for xls reading/writing.

And PHPExcel, of course.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top