hi,
1.I want to show a image file of type '.tif' in the browser window;
for that I'm writting as ASP code page.
2.This '.tif' type image can be shown better with 'Kodak Image
Control'.
3.To have this 'Kodak Image Control' on my code page I just add it's
..ocx to tool box and then drag it from 'Toolbox' to the page.
4.Now after dropping this control to the code it's type is getting
changed to 'object' instead of type 'ImgEdit'(and I think this is the
reason I don't get correct result).
5.On one button's 'Onclick' event I'm calling a javascript function
with which I'm setting a 'Path'and'Display' property of a control.
6.And want to show a image at location --
'..\MF\\TDRCMF9\196\85173-62.tif'
which get shown in new browser window but could not get shown in that
particular control. That means the path is correct, then what is the
problem?
For better understanding of problem I'm pasting a following code which
I've tried up till now......
.................................................. ................
<%@ Language=VBScript %>
<% OPTION EXPLICIT %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<SCRIPT LANGUAGE=javascript>
<!--
function showpic()
{
var path;
path = document.frmtif.path.value;
alert(path);
document.frmtif.ImgEdit1.Image =path;
document.frmtif.ImgEdit1.Display;
window.parent.self.open(path);
}
//-->
</script>
</HEAD>
<BODY bgColor=#ffe4e1>
<form name="frmtif">
The Image
<P>
<OBJECT id=ImgEdit1 style="WIDTH: 409px; HEIGHT: 218px" type="ImgEdit"
align=left
border=1 classid=clsid:6D940280-9F11-11CE-83FD-02608C3EC08A
name=imgtif></OBJECT>
<input type="hidden" name="path"
value="..\MF\\TDRCMF9\196\85173-62.tif">
<input type="button" name="show" value="Show" onclick="showpic();">
</P>
</form>
</BODY>
</HTML>
.................................................. ................
Thanks in advance,
Amita....