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.




Asp Code



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




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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...