Exporting GD image to excel

Reply

Join Date: Sep 2007
Posts: 3
Reputation: disto is an unknown quantity at this point 
Solved Threads: 0
disto disto is offline Offline
Newbie Poster

Exporting GD image to excel

 
0
  #1
Oct 17th, 2007
I am constructing a line graph on a GD image.Do you guys know of any way i can export it into excel such that its just like one created in excel
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 1
Reputation: Vijaykarthick is an unknown quantity at this point 
Solved Threads: 0
Vijaykarthick Vijaykarthick is offline Offline
Newbie Poster

Re: Exporting GD image to excel

 
0
  #2
Dec 15th, 2007
Put this code in top of your file. and display your image as you are displaying in HTML file. It will download as excel file as you want

$file_type = "vnd.ms-excel";
$file_name= "somename.xls";
header("Content-Type: application/$file_type");
header("Content-Disposition: attachment; filename=$file_name");
header("Pragma: no-cache");
header("Expires: 0");
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC