Jump to content
Software FX Community

Exporting Questions...

User (Legacy)

Recommended Posts

I am using the CFIE2000 trial version to evaluate the product... 

First, how do I export a file to a specified size? I have :

oChart.ImgHeight = 240

oChart.ImgWidth = 500


oChart.Export CHART_BITMAP, "C:\adam\Chart1.bmp"

But this does not work. It's always 191x191!

Second, how do I export to a jpg or gif or png. I am using the cfie2000

component from vb and want to create a chart to be included in a web page.

I don't care about any of hte fancy interaction stuff (right now) and just

want to export a jpg or gif in code. How do I do this??

Here is some code I am playing with right now:

Thanks for any help!!!

Public Function webChartTest() As String

Dim oChart As New ChartFX

Dim numDays As Integer

Dim lcv As Integer

numDays = 30

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


oChart.Chart3D = False

oChart.Axis(AXIS_Y).Min = 250

oChart.Axis(AXIS_Y).Max = 300

oChart.Axis(AXIS_Y).STEP = 10

oChart.Palette = "Electric Fire"

oChart.Title(CHART_TOPTIT) = "Updated " & Now()

' Open Communications channel

oChart.OpenDataEx COD_VALUES Or COD_COLORS, 4, numDays


For lcv = 0 To numDays - 1

oChart.ValueEx(OHLC_OPEN, lcv) = 270 + Int((10 * Rnd) + 1)

oChart.ValueEx(OHLC_HIGH, lcv) = 280 + Int((10 * Rnd) + 1)

oChart.ValueEx(OHLC_LOW, lcv) = 255 + Int((10 * Rnd) + 1)

oChart.ValueEx(OHLC_CLOSE, lcv) = 265 + Int((10 * Rnd) + 1)

Next lcv

' Close the communications channel


oChart.ImgHeight = 240

oChart.ImgWidth = 500


oChart.Export CHART_BITMAP, "C:\adam\Chart1.bmp"

Set oChart = Nothing

End Function

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...