Jump to content
Software FX Community

ChartFx AddPicture problem


User (Legacy)
 Share

Recommended Posts

I am in the process of converting a VB6 app to VB.NET and have run into a

small problem with ChartFx.

The code has converted with remarkable ease, with the exception that a

couple of lines of code (which work fine in VB6) cause the app to blow up:

Dim nIndex as Short

ChartFX1.Commands.AddCommand(306)

nIndex = ChartFX1.Commands.AddPicture(picTable.Image) <<< blows up here

Are there any known issues with AddPicture in .NET?

picTable is of type 'System.Windows.Forms.PictureBox'

TIA

Graeme Neath

Link to comment
Share on other sites

I'm assuming you are still using Chart FX 5.x (COM). Right ?

If so, my guess would be that the Image can not be converted to a COM (OLE)

image. I will check how this works in interop.

You must know that we have a .NET version released for quite a while (since

before the release of the .NET framework), this is the recommended (and

fully supported) way of using Chart FX from a .NET application, since this

upgrade is available mo major testing have been done of using Chart FX COM

from a .NET environment.

"Graeme Neath" <graeme@whatever.com> wrote in message

news:Hyjj68o2DHA.3512@WEBSERVER1...

> I am in the process of converting a VB6 app to VB.NET and have run into a

> small problem with ChartFx.

>

> The code has converted with remarkable ease, with the exception that a

> couple of lines of code (which work fine in VB6) cause the app to blow up:

>

>

> Dim nIndex as Short

> ChartFX1.Commands.AddCommand(306)

> nIndex = ChartFX1.Commands.AddPicture(picTable.Image) <<< blows up here

>

>

> Are there any known issues with AddPicture in .NET?

>

> picTable is of type 'System.Windows.Forms.PictureBox'

>

> TIA

>

> Graeme Neath

>

>

>

>

>

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