EZTwainX - Web Deployment
See
also: getting started, properties,
methods, events,
deployment
Applies to: All versions
Place the cabinet file on your server
You will need the EZTwainX cabinet file - eztwainx.cab. The latest stable and beta versions of this file are available inside .zip files, at the bottom of the EZTwainX main page.
Place the eztwainx.cab file on your web server where it will be accessible as part of your website. The web server (meaning Apache, IIS, etc.) must have read access to the .cab file and the containing directory.
Embed the control on your web page
On the page or pages that will include the EZTwainX control, you can create the control with HTML similar to the following. For examples of such pages, see the EZTwainX demo and beta-demo pages.
<object width=325 height=260 classid="CLSID:74F4F118-91E6-4AFC-B8D2-04066781F239" id="spnTest" <= this names the control for reference in script codebase="http://www.yourserver.com/eztwainx.cab#Version=1,56,0,7" <= modify as needed standby="Loading EZTwainX"> <param name="EnableLogging" value="True"> <= turn on debug log (optional) <param name="AppTitle" value="MyApp"> <= replace with your application name <param name="LicenseKey" value="999999999"> <= replace with your license key Your browser cannot or will not activate this EZTwainX control. </object>
If you are using a Universal License, instead of setting the AppTitle parameter, set the Licensee parameter. See your grant-of-license e-mail.
Configure Internet Explorer on client computers
1. Make sure your website is accessible from the client, and decide what security zone your website will be in for that client.
2. In IE 7, go to Tools, Internet Options, Security. Select the Zone that your web page will be in.
3. Click [Custom level...] and confirm the following settings:
a) Run ActiveX controls and plug-ins (should be prompt or enable)
b) Download signed ActiveX controls (should be prompt or enable)
c) Script ActiveX controls marked safe for scripting (should be prompt or enable - enable is better)
d) Binary and script behaviors (should be enable) (we're not positive you need this)
Take additional steps on Vista machines
Internet Explorer 7 (IE7) on Vista radically tightens ActiveX control security. To allow EZTwainX to auto-install on client workstations, you must configure the ActiveX Installer Service (directions), or pre-install EZTwainX on each workstation.