Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get Input from Scanner and put in table
Message
From
01/05/2001 04:03:59
 
 
To
01/05/2001 03:08:41
Javed Yusuf
Analytic Systems
Lahore, Pakistan
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00501873
Message ID:
00501880
Views:
25
Javed,

You can use one of several OCX controls to do this, I use LeadTools from www.leadtools.com which supports loads of image processing and scanning functions. There is also an OCR extension to allow you to convert your scanned documents (if this is what you want to do) into a text representation that can be easily searched and cross-referenced. The only downside to this control is that it isn't the cheapest once you start adding things like the OCR functionality.
*!* The following example uses the Lead OCX (ThisForm.oleLead) to aquire an
*!* image through the Twain interface.

LOCAL llLastState
LOCAL lnReturn
LOCAL lnAnswer

with ThisForm
   *!* Make sure display rectangles are reset before 
   *!* image aquisition.
   .oleLead.AutoSetRects = .T.

   *!* Select the TWAIN device and acquire the image.
   .oleLead.TwainSelect(.oleLead.hWnd)

   llLastState = .oleLead.EnableMethodErrors
   .oleLead.EnableMethodErrors = .F.

   lnReturn = .oleLead.TwainAcquire(.oleLead.hWnd)

   if lnReturn <> 0 
      lnAnswer = MessageBox("TWAIN device was not ready", 0, "Aquire")
      .oleLead.EnableMethodErrors = llLastState

      RETURN
   endif

   .oleLead.EnableMethodErrors = llLastState
endwith
Previous
Reply
Map
View

Click here to load this message in the networking platform