471,571 Members | 2,094 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Open Image in 'Kodak Image Edit Control' with web browser.

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....
Jul 19 '05 #1
0 4832

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by John L | last post: by
reply views Thread by Kevin Myers | last post: by
1 post views Thread by kaczmar2 | last post: by
6 posts views Thread by Shimon Sim | last post: by
6 posts views Thread by qysbc | last post: by
reply views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by lumer26 | last post: by
reply views Thread by Vinnie | last post: by
reply views Thread by lumer26 | last post: by

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.