Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get Input from Scanner and put in table
Message
De
01/05/2001 04:03:59
 
 
À
01/05/2001 03:08:41
Javed Yusuf
Analytic Systems
Lahore, Pakistan
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00501873
Message ID:
00501880
Vues:
20
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform