Jump to content
Software FX Community

Re: Using ChartFX in VB without painting the control


User (Legacy)
 Share

Recommended Posts

Hi,

I'm having the same problem, but I'm using VB.

I can't find any reference to the 'Creation' method in Chart FX

(client/server).

I've looked in the documentation and the object browser in VB.

Has anyone got any examples?

Thanks,

Andy Masters

VB Developer

Winterthur Life UK

"Percy Dyer" <PercyD@softwarefx.com> wrote in message

news:1Kkuv0DQAHA.2532@sfxserver.softwarefx.com...

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

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.

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

 Share

×
×
  • Create New...