I am looking for a way to import an xls with rich text to the server database through phpExcel. Some cells in the file contain plain text and other rich text, with several formats in the same cell.
I have already checked the option getStyle()
and getCellValue()
of PHPexcel can not reads styles from xls but I can not get it.
-
Mark Baker uses
getStyle()
to extract the style of a specific cell ('B2'). I need to extract the content of all, whether or not they contain rich text. WithtoArray()
I go through all the xls. -
In the second option, use
getCellValue()
. This instruction gives me the following message: Fatal error: Uncaught Error: Call to undefined method PHPExcel_Worksheet :: getCellValue ()
How do I import all the contents of the excel while maintaining the styles?