Using the Document Imaging SDK ActiveX control on HTML pages

 

The ActiveX control shipped with the Document Imaging SDK can be used on HTML pages and this way every feature implemented in the Document Imaging SDK ActiveX control is accessible on web pages.

 

Black Ice Software no longer recommends using CAB files in HTM based application for security reasons. Black Ice software stop supplying and supporting CAB files with Document Imaging SDK with version 12.70

 

In order to use the Document Imaging SDK ActiveX control on a HTML page the Document Imaging SDK ActiveX controls should be installed and registered on the client computer.

 

For example, to create BiTiff and BiDisp ActiveX control objects on the web page, add the following code to the BODY section of the HTML page:

 

<!-- Black Ice BiDisp ActiveX control -->

<OBJECT id="BIDISP" width="100%" height="100%" classid="CLSID:19B50C95-6BB5-4DFD-B20C-5B9A61FA1C0D">

</OBJECT>  

<!-- Black Ice BiTiff ActiveX control -->

<OBJECT id="BITIFF" width=1 height=1 classid="CLSID:2324B5B7-D3EF-464C-BB35-06EFF8F11EB3">

</OBJECT>

 

To call methods or set properties of ActiveX controls, use the OBJECT ID that has been specified in the OBJECT HTML tag. For example, based on the code above, you can call the LoadTIFFIntoDIB method of the BiTiff ActiveX control in the following way:

 

<SCRIPT LANGUAGE="JavaScript" >

// Load the first page of the selected TIFF File

var hDib = BITIFF.LoadTiffIntoDIB(edtFileName.value, 0, false);

              

if (hDib == 0)

{

alert('Error loading the TIFF file.');

return;

}

 

// Display loaded TIFF Image

BIDISP.hDib = hDib;

</SCRIPT>

 

Sample HTML pages can be found in the \Sample Source Codes\OCX\HTML Samples folder in the Tiff SDK installation directory.

 

The class id (CLSID) of the 32 and 64 bit versions of the Document Imaging SDK controls. The 32 bit and 64 bit ActiveX controls have the same class id.

 

BiAnno.ocx:                                        B27DC3CE-FF81-4DCF-9B80-0E69D61BED2A

BiDib.ocx:                                           D2797899-BE27-4CDB-892F-4FDC26EA9BA9

BiDisp.ocx:                                         19B50C95-6BB5-4DFD-B20C-5B9A61FA1C0D

BiDocimg.ocx:                                    86808EAB-1E42-425B-875B-6ABA81FF3513

BiFilter.ocx:                                        BF717723-6861-4396-B2E4-A4F394F72615

BiImage.ocx:                                       B6107149-7C76-4303-A879-94278D8DFF22

BiImgFrm.ocx:                                    79956462-F148-497F-B247-DF35A095F80B

BiPdf.ocx:                                           D095F965-72A1-444D-834A-32FAE03A3207

BiPrint.ocx:                                         3D806C87-EE83-46D6-AB30-12D62715D8A1

BiTiff.ocx:                                          2324B5B7-D3EF-464C-BB35-06EFF8F11EB3

BiTwain.ocx:                                       03F24F12-2945-4F7D-B646-12B8EBED3A63

BiThumbnail.ocx:                                52EDBE7D-9F40-49C8-B244-4D4633F0379A

BiDicom.ocx:                                      955DF182-16DB-471A-A35A-35CB319B655A

 

The RegDllView utility can be used to display an OCX CLSID.