Ask a Question related to PHP Development, Design and Development.
-
Jay Blanchard #1
PHP, Excel, jpgraph - can the graph be included in the Excel output?
Good morning!
I have several reports that are generated using PHP & MySQL for which I
would like to include a graph using the excellent jpgraph
([url]http://www.aditus.nu/jpgraph/[/url]) class for PHP.
<?php
ob_start();
// excel headers
header("Content-Type: application/vnd.ms-excel");
header("Content-Disposition: inline; filename=\"excel.xls\"");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
print("Excel Test Graph\n");
print(date("Y-m-d") . "\n\n");
print("\n\n\n");
ob_end_flush();
?>
<img src="graph.php">
The file output for Excel is in the tab delimited format and the IMG tag
is what calls the graph. I have tried many things to get the graph to
appear in the spreadsheet, but to no avail. Can someone point me in the
right direction?
A huge thanks in advance!
Jay
Jay Blanchard Guest
-
How do you export a Flex graph to Excel?
I need to figure out a way to export a graph generated in Adobe Flex 2.01 to MS Excel. Suggestions? -
Controlling Excel Output
Is there a way to control Excel column widths that are generated from CF? The export works perfectly from cfquery, but I'd like to adjust the... -
output to Excel
Is there a way to output PHP to MS Excel format? -Jackson -- jackson miller cold feet creative 615.321.3300 / 800.595.4401... -
[PHP] PHP, Excel, jpgraph - can the graph be included in the Excel output?
You need a class that can create xls files with images. Or you can create a Web Archive: http://officeupdate.microsoft.com/office/webarchive.htm ... -
excel graph inside ASP....
Hello coders... what i'm trying to achieve is display just the excel chart (graph) from an excel worksheet in an asp file as a jpg or a gif... -
Marek Kilimajer #2
Re: [PHP] PHP, Excel, jpgraph - can the graph be included in theExcel output?
You need a class that can create xls files with images.
Or you can create a Web Archive:
[url]http://officeupdate.microsoft.com/office/webarchive.htm[/url]
Jay Blanchard wrote:
> Good morning!
>
> I have several reports that are generated using PHP & MySQL for which I
> would like to include a graph using the excellent jpgraph
> ([url]http://www.aditus.nu/jpgraph/[/url]) class for PHP.
>
> <?php
> ob_start();
>
> // excel headers
> header("Content-Type: application/vnd.ms-excel");
> header("Content-Disposition: inline; filename=\"excel.xls\"");
> header("Expires: 0");
> header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
>
> print("Excel Test Graph\n");
> print(date("Y-m-d") . "\n\n");
>
> print("\n\n\n");
>
> ob_end_flush();
> ?>
> <img src="graph.php">
>
> The file output for Excel is in the tab delimited format and the IMG tag
> is what calls the graph. I have tried many things to get the graph to
> appear in the spreadsheet, but to no avail. Can someone point me in the
> right direction?
>
> A huge thanks in advance!
>
> Jay
>Marek Kilimajer Guest



Reply With Quote

