Showing image or colour in Excel

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pankajit09
    Contributor
    • Dec 2006
    • 296

    Showing image or colour in Excel

    Hello,

    I am generating an Excel file by changing the header and then sending data.
    The data is in tabular format.
    In the data there is a link for an image file. How to show the image in the Excel ?

    If its not possible then how to colour that column which has an image ?


    Code:
    $data=file_get_contents($filename);
    
    header("Pragma: public");
    header("Expires: 0");
    header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
    header("Cache-Control: private",false);
    header("Content-type: text/CSV");
    header("Content-Disposition: attachment; filename=$filename");
    header("Content-Description: PHP Generated Data");
    header("Content-Transfer-Encoding: binary");
    header("Content-Length: ".strlen($data));
    set_time_limit(0);
    
    echo $data;
  • pankajit09
    Contributor
    • Dec 2006
    • 296

    #2
    Actually its a CSV not an excel.

    Comment

    Working...