PHPExcel how to apply alignment for the whole document created from mysql table
问题 I used PHPExcel library to generate excel files based on the table created by the mysql query. I created multiple tabs with individual data from different queries. I need to align the data in the all the cells in all the tabs (worksheets) to center. This is my code: $mysql_xls = new MySqlExcelBuilder($mysql_db,$mysql_user,$mysql_pass); // Add the SQL statements to the spread sheet $tab_name = "tabname"; $mysql_xls->add_page($tab_name,$sql_statement,NULL,'A',1); $phpExcel = $mysql_xls-