Generates a Flash movie, a JPEG image or a PNG image from a chart and returns the url location of the generated cache file as a string.

object.GetOutputLocation( )

Arguments

object
Required. A Chart object.

Return Value

The string that specifies the relative url location of the generated chart in the public cache.

Remarks

The method actually:

The format of the generated file (i.e. Flash movie, JPEG image or PNG image) is defined by the method SetOutputFormat.


PHP Sample Code

The following PHP code illustrates use of the GetOutputLocation method.

<?php
  //Create the chart series
  $chart->SetDataFromQuery();
  $chart->LoadStyle("C:\myStyle.scs");

  $chart->SetWidth( 400 );
  $chart->SetHeight( 200 );

  //We can now generate the chart as a JPEG image
  $chart->SetOutputFormat( "JPG" );
?>

Here is the chart rendered as an image:<br>
<img src="<?= $chart->GetOutputLocation(); ?>" width=400 height=200>

See Also

SetOutputFormat Method | GetOutputLocation Method | SetCacheName Method | SetPrivateCacheDir Method | SetMaxCacheSize Method | ClearCache Method | UseCache Method

Applies To: Chart Object