Jump to content
Software FX Community

Help Generating Graphs Server Side!!!


User (Legacy)

Recommended Posts

Hi Guys,

I am creating a vb dll that will generate graphs server side. The code is

basically generating a graph of 0 bytes. I am getting no errors in the asp

code. Please refer to the asp and vb code below. I am referencing Chartfx IE

2000 Server. If anyone can help its greatly appreciated.

Regards,

John

=======================================

Asp Code

=======================================

<%

Set chart = Server.CreateObject("ChfxServer.cfx")

chart.run

%>

=======================================

VB Activex Dll Code

=======================================

Dim chart As ChartFX

Dim i As Integer

Dim j As Integer

Sub run()

Set chart = New ChartFX

chart.OpenDataEx COD_VALUES, 2, 6

For i = 0 To 1

For j = 0 To 5

chart.ValueEx(i, j) = Rnd * 100

Next j

Next i

chart.CloseData COD_VALUES

chart.RGBBk = RGB(255, 255, 255)

chart.Border = True

chart.Gallery = LINES

chart.Export CHART_BITMAP, "c:\test.bmp"

Set chart = Nothing

End Sub

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...