Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Using the Microsoft Chart Controls in PowerBuilder

368 views
Skip to first unread message

gordcross

unread,
Aug 19, 2009, 7:50:20 PM8/19/09
to
Hello,

Bruce, I am having issues trying to get the demo working.
Specifically, the demo crashes trying to call
u_chart.of_set_data(xml) with a generic error of: "error
calling external object function ...".

I know that the XML data is fine so its not that. I compiled
the InteropGraph project and have the InteropGraph.dll
located in the root folder. I can see the outline of a graph
(and series 1) when looking at the layout view of u_chart
and it is recognized as InteropGraph.InteropUserControl.

Any ideas what I am doing wrong or did not do? Thanks in
advance.

Using:
PB 11.5 Pro
VS 2008 Pro
Vista Business

Bruce Armstrong

unread,
Aug 24, 2009, 11:31:03 PM8/24/09
to

You're referring to this article?

http://pbdj.sys-con.com/node/1076828

You do have the .Net 3.5 add in installed, correct? The Chart
Controls aren't part of the regular install.

-----------------------------------

My Web 2.0 Stuff

Blog: http://bruce.pbdjmagazine.com/
Facebook: http://www.facebook.com/people/Bruce-Armstrong/1600223798
Fotki: http://public.fotki.com/brucearmstrong/
LinkedIn: http://www.linkedin.com/in/bruceaarmstrong
Twitter: http://twitter.com/bruce_armstrong
YouTube: http://www.youtube.com/user/brucearmstrong

gordcross

unread,
Aug 25, 2009, 7:44:18 PM8/25/09
to
Sorry for the confusion. I compiled the Visual Studio
project but did not launch the resulting dll as I didn't
notice that it was runnable. Once I ran it, it launched the
PB demo and it all worked fine. I have since added more
properties etc. Excellent demo, Thanks.

Bruce Armstrong

unread,
Aug 25, 2009, 9:24:16 PM8/25/09
to

Well, the DLL isn't runable, but the project was configured to run
PowerBuilder as the run/debug executable.

Glad it's working for you!

R.Schwartz

unread,
Aug 30, 2009, 7:08:03 AM8/30/09
to
Hi, I have the same issue trying Bruce's code sample :

>u_chart.of_set_data(xml) with a generic error of:
> "error >> >calling external object function ...".

Both .NET v3.5 and Chart control for .NET v3.5 are installed
on my computer.

TIA

Aron Cox

unread,
Sep 7, 2009, 1:28:15 PM9/7/09
to
Can't help much except to say I downloaded the demo from CodeXchange,
compiled it with C# Express 2008 and PB 11.5, installed .NET 3.5 and
the Chart Controls and everything worked fine (I didn't have to deploy
anything, or do anything with the C# dll. I guess it registers itself
on each build).

Aron Cox

unread,
Sep 8, 2009, 6:23:30 AM9/8/09
to
If you're getting the 'Error calling external function setdata' it's
because you haven't compile the .NET code. Doing this will add the
control to the registry so you can use it, you can tell if everything
is okay by opening u_chart in the PB app, if it is a white object then
you don;t have access to the .NET chart control, if everything is okay
then you can see a chart in it.

On 19 Aug 2009 16:50:20 -0700, Gord Cross wrote:

R.Schwartz

unread,
Sep 10, 2009, 4:30:41 AM9/10/09
to
Thank you.
Does that mean that I have to re-compile the VS project ?
Unfortunately I don't have (want) VS environment on my
computer...

Bruce Armstrong

unread,
Sep 10, 2009, 8:27:54 AM9/10/09
to

No, you just need to run regasm on the assembly.

0 new messages