Display Dicom Image in Viewer

J

Jayender

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

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
 
N

Nicholas Paldino [.NET/C# MVP]

Jayender,

Embedding a viewer in a web page is different than in your C#
application. For a web page, the active x control has to be installed on
the client side. Also, you won't be able to access the object
programatically on the server, since the instance lives on the client. You
can just set some properties in the object tag that are set, and have
javascript interact with it on the page as well.

Hope this helps.
 
J

jayender.vs

Thanks Nicholas Paldino,
Well i understand and i tried ur way ,
like,
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 Viewer is the name (or the ID - both same) of the OCX
control ,
Here the error is: it doesnt know what is Dicom objects is ... but i
have added the OCX control through Add References and in toolbar and
in my form .. and i can view the DicomObjects in my references.

is there any other possiblities to access it.

waiting for ur reply
this is my mail id : (e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top