User (Legacy) Posted January 27, 2002 Report Share Posted January 27, 2002 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 More sharing options...
Software FX Posted January 29, 2002 Report Share Posted January 29, 2002 I don't see where you give a size to the chart. You need to use the ImgWidth and ImgHeight properties before doing the Export. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.