Solved

activeX controls in asp code?

Posted on 1998-05-29
5
210 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
ID: 1856701
What are you using to create the page.
0
 
LVL 2

Expert Comment

by:Jagar
ID: 1856702
What are you using to create the page.
0
 
LVL 1

Author Comment

by:acsmith
ID: 1856703
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
ID: 1856704
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
ID: 1856705
cheers ;) I'll give it a whirl.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

"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,…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

856 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