Frage

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

War es hilfreich?

Lösung

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.

Andere Tipps

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

And PHPExcel, of course.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top