By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,170 Members | 1,421 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,170 IT Pros & Developers. It's quick & easy.

Display Dicom Image in Viewer

P: n/a
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

May 17 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

<Jayender> wrote in message news:uP**************@TK2MSFTNGP03.phx.gbl...
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

May 17 '06 #2

P: n/a
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 : ja*********@gmail.com

May 18 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.