I try to create with PHP_XLSXWriter an excel file having 2 header (text) lines and numeric values in the following lines. I manage to create from php a file having 1 header line with expected types and styles for heder line and following data lines. This can be open in excel correctly. When I insert from php a second header line (text) with writeSheetRow method, excel displays an warning/error message and suggests to repair the file. When I accept the file to be repaired, file content is then ok (header (2 lines) and numeric data). After saving the file, there is no more warning message when opening the file. Does anybody knows a way to proceed in order to avoid the initiel warning message? Thanks.
More details: The issue is due to the fact that comumns types are defined when writing the header (row 1, with writeSheetHeader method). This determine the column's types of all following lines (from row 2 to ..). In my case row 2 is not a data line. It contains only strings that are second header line. This cause the problem because there is a conflict between the type defined in the header (numeric) and the actual values in the line (sring).