Jump to content
Software FX Community

Visual Basic


User (Legacy)

Recommended Posts

Is it possible to use the ChartFX 5.5 Internet controls in a VB6 desktop

application?

I would like to use it to create a Jpeg image, lke this:

chart.export 3,"c:\temp\CFXexp.cfx"

stringChartPath = chart.GetHtmlTag(1000,400,"Jpeg")

When I try it, I get "Method 'GetHtmlTag' of object 'IChartFX' failed."

Thanks!

Bill

Link to comment
Share on other sites

It is not really designed for that plus it can not be redistributed.

Chart FX Client Server can export the chart to a BMP. There are numerous

tools out there that will convert a BMP to a Jpeg and many other image

formats. Some of them are even free.

I suggest that to build a Desktop application you use Chart FX Client server

and use one of these tools to generate a Jpeg.

--

FP

Software FX, Inc.

Link to comment
Share on other sites

I don't want to redistribute it.  I want to place the chart generation

functions in a VB com object, not in the ASP pages. (That is what I meant

when I erroneously stated 'desktop' application - sorry). I want the com

object to return the location of the Jpeg or bitmap to the ASP page.

Bill

"SoftwareFX Support" <support@softwarefx.com> wrote in message

news:pcNxuHBEDHA.2936@webserver1.softwarefx.com...

> It is not really designed for that plus it can not be redistributed.

>

> Chart FX Client Server can export the chart to a BMP. There are numerous

> tools out there that will convert a BMP to a Jpeg and many other image

> formats. Some of them are even free.

>

> I suggest that to build a Desktop application you use Chart FX Client

server

> and use one of these tools to generate a Jpeg.

>

> --

> FP

> Software FX, Inc.

>

>

Link to comment
Share on other sites

Ok. Then it is fine.

GetHtmlTag however expects the chart to be embedded within an ASP page so

that it can obtain information from the context such as virtual directories,

etc. If this communication can not be established, the component default to

what says in CfxSrv.ini.

In particular, you may be getting a problem with the temporary files folder,

check the following entry in your CfxSrv.ini (located in the Config folder

of wherever Chart FX Internet was installed)

[Output]

Absolute=<full path for your temporary directory>

Check the return value of GetHtmlTag as well (it is a string) it will tell

you more about the problem.

I tried the following code in an empty VB project with a reference to the

Chart FX Server Control:

Dim chart As New ChartFX

chart.Gallery = AREA

s = chart.GetHtmlTag("100", "100", "Jpeg")

--

FP

Software FX, Inc.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...