InstallFilter Java Script
Note: This Page uses the LEADRasterIO COM Object to install LEAD CMP, GIF Filters.
<HTML>
<HEAD>
<TITLE>Install Filters Example Page</TITLE>
<SCRIPT LANGUAGE="JAVASCRIPT">
function InstallFilters()
{
var bRetValue;
//Set the full url to the cab that contains the CMP filter dll.
RasterIO.SetFilterUrl("http://www.leadtools.com/cabs/CMPFilter.cab");
//Install the CMP filter dll, false indicate that the installation is not silent.
bRetValue = RasterIO.InstallFilter("CMP", false);
//Check if CMP Filter is successfully Installed
if(bRetValue)
alert("Installation of LEAD CMP Filter is successful");
else
alert("Installation of LEAD CMP Filter failed");
//Set the full url to the cab that contains the GIF filter dll.
RasterIO.SetFilterUrl("http://www.leadtools.com/cabs/GIFFilter.cab");
//Install the GIF filter dll, true indicate that the installation is silent.
RasterIO.InstallFilter("GIF", true);
}
</SCRIPT>
</HEAD>
<BODY onload="javascript:InstallFilters();">
<object
ID="RasterIO"
name="RasterIO"
classid="CLSID:0014070E-B1BA-11CE-ABC6-F5B2E79D9E3F"
codebase="http://www.leadtools.com/COM/ltrio14n.cab">
</object>
</BODY>
</HTML>