Alaska Software Inc. - Scanner Activex
Username: Password:
AuthorTopic: Scanner Activex
Francesco FrancomagroScanner Activex
on Thu, 16 Oct 2008 12:33:05 +0200
Hi
I want to integrate my application writen in xbase++ with a scanner for
import images. Have someone some example source code ?
Tank's
Francomagro Francesco
ffrancom @ gmail . com
Regan Cawkwell Re: Scanner Activex
on Thu, 16 Oct 2008 12:30:03 +0100
Hi Francesco

I have never tried via ActiveX...

We use DLL wrappers with EZTwain Pro v3 which works very well.  The following is an 
example of the code that we use to create PDFs of the scans:

STATIC PROCEDURE Acquire_And_Save(nScanType,nResolution,nQuality,cFile,lWithUI,oAppWindow)

    LOCAL hdib

    if eztw32_OpenDefaultSource()
       eztw32_SetHideUI(!lWithUI)
       eztw32_SetCurrentUnits(TWUN_INCHES)
       eztw32_SetCurrentResolution(nResolution)
       eztw32_SetJpegQuality(nQuality)
       eztw32_SetPixelType(nScanType)
       hdib := eztw32_Acquire(oAppWindow:getHWND())
       if hdib > 0
          eztw32_DIB_WriteToPdf(hdib,cFile)
          eztw32_DIB_Free(hdib)
       endif
       eztw32_CloseSource()
    endif
RETURN

You should be able to find more info about the EZTwain wrappers in this board somewhere.

Regan Cawkwell
Company  : Real Business Applications Ltd
Title    : Technical Support
Websites : www.rbauk.com
Email    : regan@rbauk.com
------------------------------------------------------


Francesco Francomagro wrote:
> Hi
> I want to integrate my application writen in xbase++ with a scanner for
> import images. Have someone some example source code ?
> Tank's
> Francomagro Francesco
> ffrancom @ gmail . com
> 
>
Francesco FrancomagroRe: Scanner Activex
on Fri, 17 Oct 2008 09:50:37 +0200
Hi Regan
is just what I want. But how I link EZTwain  DLL in prg code.
I don't have experience with DLL.
I have looking for DLL wrapper in the news but there aren't messages.
Tank's a lot
Francesco

"Regan Cawkwell" <regan@rbauk.com> ha scritto nel messaggio
news:45c7099$1f7466f8$c00@news.alaska-software.com...
> Hi Francesco
>
> I have never tried via ActiveX...
>
> We use DLL wrappers with EZTwain Pro v3 which works very well.  The
following is an
> example of the code that we use to create PDFs of the scans:
>
> STATIC PROCEDURE
Acquire_And_Save(nScanType,nResolution,nQuality,cFile,lWithUI,oAppWindow)
>
>     LOCAL hdib
>
>     if eztw32_OpenDefaultSource()
>        eztw32_SetHideUI(!lWithUI)
>        eztw32_SetCurrentUnits(TWUN_INCHES)
>        eztw32_SetCurrentResolution(nResolution)
>        eztw32_SetJpegQuality(nQuality)
>        eztw32_SetPixelType(nScanType)
>        hdib := eztw32_Acquire(oAppWindow:getHWND())
>        if hdib > 0
>           eztw32_DIB_WriteToPdf(hdib,cFile)
>           eztw32_DIB_Free(hdib)
>        endif
>        eztw32_CloseSource()
>     endif
> RETURN
>
> You should be able to find more info about the EZTwain wrappers in this
board somewhere.
>
> Regan Cawkwell
> Company  : Real Business Applications Ltd
> Title    : Technical Support
> Websites : www.rbauk.com
> Email    : regan@rbauk.com
> ------------------------------------------------------
>
>
> Francesco Francomagro wrote:
> > Hi
> > I want to integrate my application writen in xbase++ with a scanner for
> > import images. Have someone some example source code ?
> > Tank's
> > Francomagro Francesco
> > ffrancom @ gmail . com
> >
> >