Namespace: GlobFX.SwiffChartGenerator
Assembly: GlobFX.SwiffChartGenerator (in GlobFX.SwiffChartGenerator.dll)

Forces caching to be used or not.

Visual Basic
Public Sub UseCache( use_cache As Boolean )
C#
public void UseCache( bool use_cache );

Arguments

use_cache
A boolean value specifying if caching should be used or not.

Remarks

Chart Caching is always used when the following methods are called to generate the chart: GetHTMLTag and GetOutputLocation. Therefore using UseCache before calling one of these methods has no effect.

However, you may want to use chart caching when generating charts through other methods.

This method overrides the Force Use Cache parameter value in the Swiff Chart Generator Control Panel as well as in the swfchart.ini configuration file


Sample Code

The following code illustrates use of the UseCache method.

Visual Basic
' Create the chart series
chart.SetDataFromTxtFile("C:\\myData.txt")
chart.LoadStyle("C:\\myStyle.scs")

' Please use chart caching
chart.UseCache( True )
C#
// Create the chart series
chart.SetDataFromTxtFile("C:\\myData.txt");
chart.LoadStyle("C:\\myStyle.scs");

// Please use chart caching
chart.UseCache(true);

See Also

SetCacheName Method | SetPrivateCacheDir Method | SetMaxCacheSize Method | ClearCache Method

Applies To: Chart Object