ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 SelectAcquireSource worked only the first time - unable to scan

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Sidney Egnew Posted - Mar 23 2023 : 00:31:31
The following code worked the first time I ran the program. The scanner selection dialog is no longer displayed, and the acquire never executes.

  MainMemo.Lines.Add('Checking Scanner');
  if ImageEnMView.MIO.SelectAcquireSource([ieaTwain]) then
    begin
      MainMemo.Lines.Add('Scanning');
      ImageEnMView.MIO.Acquire(True);
    end;
  MainMemo.Lines.Add('Done');

The following is displayed:
Checking Scanner
Done

I rebooted the computer. I shut down the scanner and restarted it. The program no longer works. What can I do?

Thanks

3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Mar 24 2023 : 20:04:24
Hi

Yes, the names are confusing, but they come from the driver (i.e. the Manufacturer).

Can you generate a log when the scanning fails:

http://www.imageen.com/help/TIETwainParams.LogFile.html


Nigel
Xequte Software
www.imageen.com
Sidney Egnew Posted - Mar 23 2023 : 08:10:38
Hello Nigel,

I changed the code
from: f ImageEnMView.MIO.SelectAcquireSource([ieaTwain]) then
to: f ImageEnMView.MIO.SelectAcquireSource([ieaTwain,ieaWIA])

The pages scanned after I made this change, so I tried AllAcquire. It shows the scanner I turned on:

Device Name: WIA-Brother MFC-L8850CDW [30055cc
API: Twain
Device Type: Unknown
Bit Depth: 24
Physical Size: 8.50" x 14.00" (850 x 1400 px)
Max Paper Size: : A4/US Legal
Feeder Loaded: True
Paper Detectable: False
Duplex Supported: False
Contrast: 0
Brightness: 0
Threshold: 128

This is confusing as the device name says WIA, but the API says twain. This device scans duplex, but AllAcquire says False. Regardless, here is what happens when I change the API type in AllAcquire.

Twain Only - Windows is not wide enough to see the version information on the MFC.
TW-Brother ADS-2700W LAN 1.0 (32-32)
WIA-Brother ADS-2700W LAN 1.0 (32-32)
WIA-Brother MFC-L8850CDW (30055cc 1.

WIA Only - A different selection screen is shown with icons for:
Brother MFC-L8850CDW [30055cc2ba0b] using Microsoft WSD Scan Device
Brother ADS-2700W LAN using Brother ADS-2700W LAN

When I run my application with [ieaTwain,ieaWIA], I see a different list:
TW-Brother ADS-2700W LAN
WIA-Brother MFC-L8850CDW (30055cc
WIA-Brother ADS-2700W LAN
Brother MFC-L8850CDW [30055cc2ba0b]
Brother ADS-2700W LAN

I am not using either scanner in production, so this is not a big problem. The problem is that when I used AllAcquire at the production location, AllAcquire scanned very slowly.
The next time I tried, it would not scan. Other software we use works fine. That scanner is a modern high-speed Canon. I will have to go on-site to get more information.

Thanks for your help. Please advise on what is causing the issue. Feel free to email me if there is anything I can do related to what is happening here.








xequte Posted - Mar 23 2023 : 04:10:27
Hi Sidney

Are other third-party applications able to see the scanner? How about ImageEn's standard demos?



Nigel
Xequte Software
www.imageen.com