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.
Public Function GetOutputLocation As String
public string GetOutputLocation();
The format of the generated content can be specified by the OutputFormat property.
"/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"
The following code illustrates use of the GetOutputLocation method.
' 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>" )
// 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>" );
OutputFormat Property | GetHTMLTag Method | SetCacheName Method | SetPrivateCacheDir Method | SetMaxCacheSize Method | ClearCache Method | UseCache Method
Applies To: Chart Object