Need help for using TWAIN dll (ESTW32.DLL) in lotus script

i picked up a lotus script code which use fonctions of eztw32.dll to scan documents under notes client.

i got some problems to use it correctly with my Epson scanner.

when i call the ‘ScantoFile’ function it intializes the scan, but the image scanned is empty.

does anybody know how to use it ?

or know another solutions ?

Thanks for your help