Jump to content
Software FX Community

ChartFX with PHP


User (Legacy)
 Share

Recommended Posts

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

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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...