User (Legacy) Posted February 3, 2003 Report Share Posted February 3, 2003 Hi, i'm trying to load the ChartFX COM-Object in PHP and export a chart into a bitmap-file. But it doesn't work at all. It only writes an empty file to disk. Has anybody some expericence with PHP and ChartFX? Here is my current PHP-Code-Snippet: <?PHP $chartFX = new COM( "ChartFX.Chart" ) or die ( "Can't find ChartFX" ); $chartFX->Export( 1, "C:\\Chart1.bmp" ); //1 = CHART_BITMAP ?> Link to comment Share on other sites More sharing options...
Software FX Posted February 3, 2003 Report Share Posted February 3, 2003 You are trying to use the ActiveX control. The ActiveX control requires a container and is to be used in interactive applications. What you need to use is Chart FX Internet, which provides a Server Side component that is Windowless and designed to work in the "background" like in a WEB server. This component has properties that will allow you to specify the size of the image without it ever being displayed in the screen. Sorry, we do not have samples for Perl. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
User (Legacy) Posted February 4, 2003 Author Report Share Posted February 4, 2003 thx for your fast response. The exporting-function works very well with the ChartFX-Internet Object. But a new problem came up: How can I feed the object with Data? I got it to work with a ADODB.Resultset, but I can't set the values "manually". In ASP you can assign values with the following statement: Chart.ValueEx(i,j) = 50 But in PHP this doesn't work: $chartFX->ValueEx( $i, $j ) = 50.0; This is an illegal statement. Do you know how to do this in PHP? thx in advance Michael Doswald Link to comment Share on other sites More sharing options...
Software FX Posted February 4, 2003 Report Share Posted February 4, 2003 Sorry, I don't know what the syntax for accessing bi-dimensional array properties are in Perl -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.