EZTwainX Examples & How-To's

Simplest Scan

The simplest scan example, in VB:


Automated Document Scan

300 DPI B&W single-sided document directly to PDF, with no scanner dialog displayed:

EZTwain.ScanWithUI = False
EZTwain.ScanDPI = 300
EZTwain.ScanType = 0
EZTwain.ScanDuplex = 0

Enumerate the installed TWAIN devices

And load a ComboBox with their names:

devs = EZTwain.InstalledSources
For Each devName In devs
  DevList.AddItem (devName)
Next devName
DevList.Text = EZTwain.DefaultSourceDevice