Navigation:  OLE Automation > Application > Methods >

SpaceObServer.Application.ChartExport

Previous pageReturn to chapter overviewNext page

Description

Exports one of graphs shown in SpaceObServer into a graphic file.
 

Syntax

ChartExport (ExportPath : <String>, ChartType : <String>)
 

Parameters

ExportPath

The full path of the export file (including the exported file name).
You can use environment variables as well as "%DATE%" and "%TIME%" in the file path.

ChartType

Defines the chart type to be exported. This parameter can be one of the following strings:

"pie": Exports the "pie" chart.
"bar": Exports the "bar" chart.
"treemap": Exports the "treemap" chart.
"history": Exports the "History" chart.
"sizedist": Exports the "Size Distribution" chart.
"fileages": Exports the "Age of Files" chart.

 
Example

1.) SOS.ChartExport "C:\Temp\SOS\barchart.bmp", "bar"

Exports the bitmap graphic of a bar chart to "C:\Temp\SOS\barchart.bmp".

2.) SOS.ChartExport "C:\Temp\SOS\piechart.jpg", "pie"                                                                                

Exports the JPEG graphic of a pie chart to "C:\Temp\SOS\piechart.jpg".

3.) SOS.ChartExport "C:\Temp\SOS\historychart.gif", "history"

Exports the graphic of a history chart to "C:\Temp\SOS\historychart.gif".

4.) SOS.ChartExport "C:\Temp\SOS\fileageschart.png", "fileages"

Exports the graphic of a age of files chart to "C:\Temp\SOS\ageoffileschart.png".

5.) SOS.ChartExport "C:\Temp\SOS\sizedistchart.jpeg", "sizedist"

Exports the graphic of a size distribution chart in the JPEG format to "C:\Temp\SOS\sizedistchart.jpeg".