Solved

activeX controls in asp code?

Posted on 1998-05-29
5
187 Views
Last Modified: 2013-12-25
I need to create an instance of the ms chart activex component in an asp. I know (i think) i need a line similar to "set mychart = server.creatobject("something")" but I cant work out what the something should be. I've tried the class ID, and the description from the registry, but have had no joy. there must be a way to do this.
please help if you can.
0
Comment
Question by:acsmith
  • 3
  • 2
5 Comments
 
LVL 2

Expert Comment

by:Jagar
Comment Utility
What are you using to create the page.
0
 
LVL 2

Expert Comment

by:Jagar
Comment Utility
What are you using to create the page.
0
 
LVL 1

Author Comment

by:acsmith
Comment Utility
err.. not sure what you mean by that. I'm running IIS4 on NT4, using Visual InterDev.I can create an instance of the control now (using 'set mychart = Server.CreateObject("mschart.chart.1")') but whenever I try to access a method or property I get a 'Catastrophic error'. I've decided not to use msChart now anyway, but would like to launch an exe from the asp on the server (the exe will draw a graph, either gif or jpeg, and save it as a file, then the asp will send the image file down as part of the html.) Any ideas how I can launch an exe from an asp??
0
 
LVL 2

Accepted Solution

by:
Jagar earned 100 total points
Comment Utility
Sorry no.  You can try using the shell command, but that probably won't work, ie. x = shell("C:\test.exe").
Or try creating and ActiveX Server on the Server machine that lanches then exe (This is a ActiveX DLL in case you didn't know).
0
 
LVL 1

Author Comment

by:acsmith
Comment Utility
cheers ;) I'll give it a whirl.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now