473,289 Members | 2,089 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,289 software developers and data experts.

Using DICOM (ActiveX ctrl) in ASP Net with C#

Hello ,
I need to add a ActiveX control ...the Dicomviewer in ASP>net ..
I am able to do it fine in C# project but not in web application
I add that Dicom dll (.ocx file) in my ASP.Net form so it added like
this:

Code:
<OBJECT id="Viewer" style="Z-INDEX: 101; LEFT:..........
I need to access this Viewer in my C# coding so that i can add image to
that Dicom Viewer.
please help me dude ,

thanks,
Jayender

May 17 '06 #1
2 2918
in a web application, an ocx is hosted by the browser, you the server code
can not access it. your c# code can control the emittion of the <object> tab
and parameters, but can not access the ocx.

accessing the ocx can only be done with javascript. you can emit javascript
from your c# code that will set the parameters you want. when accessing
active/c control from client script you must check that the readyState == 4
(control is loaded).

-- bruce
<ja*********@gmail.com> wrote in message
news:11**********************@i39g2000cwa.googlegr oups.com...
Hello ,
I need to add a ActiveX control ...the Dicomviewer in ASP>net ..
I am able to do it fine in C# project but not in web application
I add that Dicom dll (.ocx file) in my ASP.Net form so it added like
this:

Code:
<OBJECT id="Viewer" style="Z-INDEX: 101; LEFT:..........
I need to access this Viewer in my C# coding so that i can add image to
that Dicom Viewer.
please help me dude ,

thanks,
Jayender

May 17 '06 #2
Well thanks a lot for ur reply Bruce...
in my OCX control there is no readyState in the OCX properties.
then i tried like this:
Code:
<script language="javascript">
function Dicom()
{
var Dicom = new DicomObjects.DicomImage();
Dicom.FileImport("C:\\pcinfo.bmp", "", "");
document.Form1.Viewer.Images.Add(Dicom);
}
</script>
Here the error is: it doesnt know what is Dicom objects is ... but i
have added the OCX control through Add References .. and i can view it
in my references.
is there any other possiblities to access it.

waiting for ur reply
this is my mail id : ja*********@gmail.com

thanks,
Jayender

May 18 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: balg | last post by:
When we create the interop for an ActiveX control (which has reference to few other binaries and mshtml ), it works fine with the ..Net application. But when we take another build of the same...
3
by: fumihiko | last post by:
Hi, I created an activex control (C++), and it uses another COM dll (C++). This COM dll links with a static library that dose some calculation. (both are debug multithreaded dll) I created a...
1
by: Mehr H | last post by:
I have been working on this for several days and am still have had no success in achieving this. Pleae help. It seems that documentation for this is very limited. I have looked in several books and...
0
by: Frank | last post by:
I am attempting to convert an asp file to a asp.net file using C#. The original file has an ActiveX control which is contained in a cab file. The cab file contains the .ocx file which connects...
1
by: UnaCoder | last post by:
Hi, I noticed that this particular object is only accessable if the IE security setting "Initialize and and script ActiveX controls not marked as safe" is enabled. Does windows maintain this list...
0
by: jayender.vs | last post by:
Hello , I need to add a ActiveX control ...the Dicomviewer in ASP>net .. I am able to do it fine in C# project but not in web application I add that Dicom dll (.ocx file) in my ASP.Net form so it...
2
by: abhimanyu | last post by:
Hi, I am building a project using C# in VS2005. I need to use a COM ActiveX control in my project but I do not have a Form on which I want to place this control. I only want to create an object...
4
by: Oriane | last post by:
Hi there, I need to use an ActiveX inside a Web service. My problem is that I need an handle on this Com component, so I add a reference to my .Net project, and I create an instance of class of...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.