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

Generates the chart in the requested format and returns the relative url location of the generated cache file as a string.

Visual Basic
Public Function GetOutputLocation As String
C#
public string GetOutputLocation();

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 content can be specified by the OutputFormat property.


For a SVG image file (SVG) the method returns a string like this one:
  "/charts_cache/9A7DE3D6-CE1E412B.svg"
For a JPEG image file (JPG) the method returns a string like this one:
  "/charts_cache/9A7DE3D6-CE1E412B.jpg"
For a PNG image file (PNG) the method returns a string like this one:
  "/charts_cache/9A7DE3D6-CE1E412B.png"
For an Adobe Flash movie (SWF) the method returns a string like this one:
  "/charts_cache/9A7DE3D6-CE1E412B.swf"
For a PDF document file (PDF) the method returns a string like this one:
  "/charts_cache/9A7DE3D6-CE1E412B.pdf"

Sample Code

The following code illustrates use of the GetOutputLocation method.

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

' Generate the chart and its web location in the HTML page
' e.g. "/charts_cache/9A7DE3D6-CE1E412B.swf"
Me.Response.Write( chart.GetOutputLocation() + "<br>" )
C#
// Create the chart series
chart.SetDataFromTxtFile("C:\\myData.txt");
chart.LoadStyle("C:\\myStyle.scs");

// Generate the chart and its web location in the HTML page
// e.g. "/charts_cache/9A7DE3D6-CE1E412B.swf"
this.Response.Write( chart.GetOutputLocation() + "<br>" );

See Also

OutputFormat Property | GetHTMLTag Method | SetCacheName Method | SetPrivateCacheDir Method | SetMaxCacheSize Method | ClearCache Method | UseCache Method

Applies To: Chart Object