Non-UI Automation Under .Net

TeeChart for ActiveX, COM and ASP
Post Reply
Eternal
Newbie
Newbie
Posts: 1
Joined: Fri Nov 15, 2002 12:00 am

Non-UI Automation Under .Net

Post by Eternal » Sun Feb 01, 2004 2:11 pm

I am hoping to be able to create a Teechart with no UI for automation on my web server (create a chart from code and export it to a PNG file).

Instantiating an AxTeeChart.AxTChart object works fine, but whenver I try to access any properties/methods (like .AddSeries) it crashes with an "InvalidActiveXStateException".

I have narrowed this down to the fact that the chart appears to require a drawing surface. If I instantiate a form object from code, and set that as the chart's .Parent, it works fine. Unfortunatly, in a web app (and on a shared host), I can't use anything in the Windows.Forms namespace. I was hoping for a non-UI, "black box" solution.

Am I trying to do the impossible? Or is there a trick I can use to fool the chart into drawing itself without using Windows.Forms?

Pep
Site Admin
Site Admin
Posts: 3296
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Fri Feb 06, 2004 12:02 pm

Hi,
Am I trying to do the impossible? Or is there a trick I can use to fool the chart into drawing itself without using Windows.Forms?
I've attached one example of this in the steema.public.attachments newsgroups.

Post Reply