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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 SelectAcquireSource worked only the first time - unable to scan
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Sidney Egnew

USA
55 Posts

Posted - Mar 23 2023 :  00:31:31  Show Profile  Reply
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

xequte

38608 Posts

Posted - Mar 23 2023 :  04:10:27  Show Profile  Reply
Hi Sidney

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



Nigel
Xequte Software
www.imageen.com
Go to Top of Page

Sidney Egnew

USA
55 Posts

Posted - Mar 23 2023 :  08:10:38  Show Profile  Reply
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.








Go to Top of Page

xequte

38608 Posts

Posted - Mar 24 2023 :  20:04:24  Show Profile  Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: