![]() |
Export text and image of a table into xls - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Export text and image of a table into xls (/showthread.php?tid=71400) |
Export text and image of a table into xls - Leolabs - 08-10-2018 Hi, These are my data: ID Name Photo 1 Ada (image in blob) 2 Billy (image in blob) 3 Charles (image in blob) I have no problem display them in actual pages,but not able to export all of them into xls,only text (such as ID,Name)show inside the excel but not the photo,which appear as blank cell only. Here my code(without controller and model of course): Code: <?php May I know what was I missing?Need to programmatically draw the image? RE: Export text and image of a table into xls - qury - 08-10-2018 If i were you i would probably use something like PhpSpreadsheet to generate my file. See relevant documentation on how to add an image below: https://phpspreadsheet.readthedocs.io/en/develop/topics/recipes/#add-a-gd-drawing-to-a-worksheet |