Alaska Software Inc. - Alaska Xbase Scanner Activex z wrapperjem EZTwain Pro 3
Username: Password:
AuthorTopic: Alaska Xbase Scanner Activex z wrapperjem EZTwain Pro 3
Emil Peklar Alaska Xbase Scanner Activex z wrapperjem EZTwain Pro 3
on Wed, 22 Oct 2014 11:49:12 +0200
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
>
>