ComponentOne Chart 8.0 for ActiveX
Loading Data or a File From a URL

 

Loading Data or a File From a URL

Using the LoadURL method, you can load data or a chart description file (.OC2 and .OC3) directly from a URL instead of adding it programmatically. If you want to load an entire chart, use the Chart2D object’s LoadURL method. If you just want to load data into an existing chart, use the Chart2DData object’s LoadURL method. Both of these methods have a single parameter, URLname, which is a string representing the URL where the file you want to load is located.

The following two examples illustrate the different uses of the LoadURL method from within an HTML file:

<SCRIPT LANGUAGE="VBScript">

Sub Window_OnLoad()
       'Load an .OC2 file
       Chart2D1.loadURL("http://www.apexsc.com/olectrachart6/data/profit.oc2")

       ' Load a .DAT file  
       Chart2D1.ChartGroups(1).Data.LoadURL("http://www.apexsc.com/olectrachart6/data/1992.dat")
End Sub
</SCRIPT>

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback