Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Data(graph) presentation on the internet examples by using ASP and VB(measurement studio)

any examples describe how to use ASP and VB to present data graph stored in database on the internet?
0 Kudos
Message 1 of 4
(3,451 Views)
One thing that you could do is host the graph control in IE via the object tag and publish your data through DataSocket, then bind the graph to DataSocket. The article Building an Interactive Web Page with DataSocket explains how to do this.

Another option would be that you could create a dynamic image in ASP from the graph. The graph's ControlImage method returns an IPictureDisp for an enhanced metafile. You could use a third-party component to create a .jpg, .gif, .png, or whatever on the fly and use the image returned from ControlImage to generate the graphic. It's hard to provide an example of this without having access to
a third-party component that can dynamically generate images in ASP.

A third option would be to host the graph control in IE, then generate client-side script to plot data in your ASP code. Below is a simple example that generates code for an array of 100 random points. This example is not practical since you could already do that on the client, but the point is that you could do the same thing with the data from your database.

<html>
<head>
<script language="VBScript">
Function PlotData()
Dim data(99)
<%
Dim i
For i = 0 To 99
Dim value
value = Rnd * 10

Response.Write " data(" & i & ") = " & value & vbCrLf
Next
%>
graph.PlotY data
End Function
</script>
</head>

<body>
<object id="graph" classid="clsid:B68DBFAB-16A0-11CE-80BF-0020AF31CEF9" width="500" height="300">
<span style="color:red;">Unable to load the graph control.</span>
</object>


</body>

<script language="VBScript">
PlotData()
</script>
</html>

Hope this helps.

- Elton
0 Kudos
Message 2 of 4
(3,451 Views)
Hi, I want to know if there is some way to get a public plug-in for web pages with components works, because my page is intended to be seeing in any computer, but the components, don't show up.. they only show up in clients where a components work product is installed.
Is there some kind of license that allow free public visualizatation of this components in web pages?
0 Kudos
Message 3 of 4
(3,451 Views)
Check out the Building an Interactive Web Page with DataSocket article and in particular note the "Creating the HTML File" section where it talks about creating an Internet distribution package so that the graph can automatically be downloaded and installed on machines that don't already have it.

- Elton
0 Kudos
Message 4 of 4
(3,451 Views)