How to access a scanner via TWAIN.
Re: How to access a scanner via TWAIN.
Estoy tratando de utilizar este dll con múltiples paginas y para escribir yo:
_:SetMultiTransfer(1) // Opción para escanear varias páginas
Pero está trabando el equipo cuando vacía la bandeja
Me di cuenta de que está bloqueando el equipo cuando se ejecuta: nDib := (_: AcquireToFile (cFilescan)).
Mi Tscan.prg está así:
METHOD AcquireToFile (cFileName) INLINE TW_ACQUIRETOFILENAME (:: hWnd, cFileName)
HB_FUNC( TW_ACQUIRETOFILENAME ) // hWnd, cFileName
{
hb_retni( TWAIN_AcquireToFilename( ( HWND ) hb_parnl( 1 ), hb_parc( 2 ) ) );
}
¿Alguien me puede ayudar?
Estoy usando FiveWin for xHarbour 13.07, Windows 7 32 bits.
Gracias amigos.
_:SetMultiTransfer(1) // Opción para escanear varias páginas
Pero está trabando el equipo cuando vacía la bandeja
Me di cuenta de que está bloqueando el equipo cuando se ejecuta: nDib := (_: AcquireToFile (cFilescan)).
Mi Tscan.prg está así:
METHOD AcquireToFile (cFileName) INLINE TW_ACQUIRETOFILENAME (:: hWnd, cFileName)
HB_FUNC( TW_ACQUIRETOFILENAME ) // hWnd, cFileName
{
hb_retni( TWAIN_AcquireToFilename( ( HWND ) hb_parnl( 1 ), hb_parc( 2 ) ) );
}
¿Alguien me puede ayudar?
Estoy usando FiveWin for xHarbour 13.07, Windows 7 32 bits.
Gracias amigos.
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: How to access a scanner via TWAIN.
This sample is working fine here:
EMG
Code: Select all
#include "Fivewin.ch"
FUNCTION MAIN()
? TWAIN_SCANNER( "This is a test.bmp" )
RETURN NIL
FUNCTION TWAIN_SCANNER( cBmp )
IF TWAIN_ISAVAILABLE() = 0
? "TWAIN is not installed in this computer."
RETURN .F.
ENDIF
RETURN TWAIN_ACQUIRETOFILENAME( 0, cBmp ) = 0
DLL32 STATIC FUNCTION TWAIN_ACQUIRETOFILENAME( hWnd AS LONG, cFile AS LPSTR ) AS LONG;
PASCAL FROM "TWAIN_AcquireToFilename" LIB "eztw32.dll"
DLL32 STATIC FUNCTION TWAIN_ISAVAILABLE() AS LONG;
PASCAL FROM "TWAIN_IsAvailable" LIB "eztw32.dll"
Re: How to access a scanner via TWAIN.
Good morning, Enrico.
What your scanner? I'm with a Kodak i1120. With Fivewin for xHarbour 13.07 and Bcc 7.3
What your scanner? I'm with a Kodak i1120. With Fivewin for xHarbour 13.07 and Bcc 7.3
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: How to access a scanner via TWAIN.
HP Deskjet F380, latest FWH and same BCC.jfaguiar wrote:Good morning, Enrico.
What your scanner? I'm with a Kodak i1120. With Fivewin for xHarbour 13.07 and Bcc 7.3
EMG
- gkuhnert
- Posts: 274
- Joined: Fri Apr 04, 2008 1:25 pm
- Location: Aachen - Germany // Kerkrade - Netherlands
- Contact:
Re: How to access a scanner via TWAIN.
Problem for me is, that I didn't obtain a licence at the time version 2 of this dll was available. Now they are only selling version numbers 3 and 4. This example however works only with the older dll
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: How to access a scanner via TWAIN.
My function works fine with the free version of the EZTW32.DLL.
EMG
EMG
- gkuhnert
- Posts: 274
- Joined: Fri Apr 04, 2008 1:25 pm
- Location: Aachen - Germany // Kerkrade - Netherlands
- Contact:
Re: How to access a scanner via TWAIN.
I didn't find any licence information saying that the dll itself is free. Just found, that the class tscan.prg is free. Do you have a link that clearly states the dll as free? That would be really great
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
- gkuhnert
- Posts: 274
- Joined: Fri Apr 04, 2008 1:25 pm
- Location: Aachen - Germany // Kerkrade - Netherlands
- Contact:
Re: How to access a scanner via TWAIN.
Great! Thank you so much
- Silvio.Falconi
- Posts: 4956
- Joined: Thu Oct 18, 2012 7:17 pm
Re: How to access a scanner via TWAIN.
I used CLASS TSCAN32 by Rafa Carmona ( TheFull )
it use Easy TWAIN library (TWAIN.LIB) and EZTW32.dll
there is another method ?
it use Easy TWAIN library (TWAIN.LIB) and EZTW32.dll
there is another method ?
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC