Export chart to Excel

how to export chart to an excel file

Page 1 of 1

2 Replies - 5844 Views - Last Post: 05 March 2009 - 03:09 AM Rate Topic: -----

#1 shah.amit  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 05-March 09

Export chart to Excel

Post icon  Posted 05 March 2009 - 12:05 AM

How Can I export a chart created in PHP to an Excel file
Is This A Good Question/Topic? 0
  • +

Replies To: Export chart to Excel

#2 AlienWebguy  Icon User is offline

  • D.I.C Head

Reputation: 9
  • View blog
  • Posts: 84
  • Joined: 04-March 09

Re: Export chart to Excel

Posted 05 March 2009 - 02:33 AM

Use this PHP function to export your chart to CSV format: http://us2.php.net/m...ion.fputcsv.php

Excel should be able to import CSV no problem.

--S--
Was This Post Helpful? 0
  • +
  • -

#3 Hary  Icon User is offline

  • D.I.C Regular

Reputation: 44
  • View blog
  • Posts: 427
  • Joined: 23-September 08

Re: Export chart to Excel

Posted 05 March 2009 - 03:09 AM

Or you can build up a HTML table and save it in a file with a .xls extension using the header() function. Excel will open this without the need of importing the file.
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1