The following HTML code shows how to use the Document Imaging OCX to display a TIFF image on an HTML page:
<html>
<SCRIPT LANGUAGE=VBScript>
Sub SearchFunction()
TiffViewer.hDib = TiffViewer.LoadTIFF("c:\tif\sample.tif", 1, 0)
TiffViewer.Zoom = 1
TiffViewer.ScrollBars = 3
TiffViewer.Magnify = 0
TiffViewer.MousePointer = 4
End Sub
</SCRIPT>
<body>
<object width="632" height="468" classid="clsid:BB04E025-3CED11D2940C-0040F6A40C27" id="TiffViewer">
</object>
<button type="button" name="btnSearch" onclick="VBScript:SearchFunction()">Search</button>
</body>
</html>
The Document Imaging OCX should be registered and the required DLLs (BiTiff.dll, BiDib.dll, jpeg32.dll) should be installed on the computer that displays this HTML page.