Jump to content
Software FX Community

Using ChartFX in VB without painting the control


Software FX

Recommended Posts

In order to export Chart FX to an Image, you must first give it a size,

otherwise we wouldn't know what size of chart you want.

There are two ways of doing this:

i) Use the Creation method (in Chart FX) to create a chart Windows

previous to exporting the chart. This is the easiest but not the most

efficient.

ii) Create a memory Device Context DC, attach a bitmap to it and use the

Paint method to draw the chart into that bitmap. Then take the bitmap

selected in the HDC and save it. This is the most efficient way but

involves a lot of Windows API manipulation.

Percy Dyer

Software FX

5200 Town Center Circle, Tower I, Suite 450

Boca Raton, FL 33486. USA

Toll Free: (800) 392-4278

Telephone: (561) 392-5089

Tech Support: (561) 392-2023, Ext. 207

Fax: (561) 392-3328 / 998-2383

-----Original Message-----

From: Stuart [mailto:smillholland@rtgsoft.com]

Sent: Friday, October 20, 2000 1:58 PM

Posted To: General

Conversation: Using ChartFX in VB without painting the control

Subject: Using ChartFX in VB without painting the control

<< File: chart1.gif >> Hello all,

Has anyone used ChartFX strictly through code without having forms at all

(i.e. in an ActiveX dll) and just exporting the graph to a bitmap? I am

currently doing that and everything is working fine except the sizing of the

graph seems fixed. In other words, it cuts of the edges. I will attach a

file (converted it to a gif).

Thanks for any help,

Stuart.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...