Solved

activeX controls in asp code?

Posted on 1998-05-29
5
203 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

803 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