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
 ImageEnMView WIA

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
izaque Posted - Mar 22 2012 : 14:35:51
Hi, I'm trying to scan a document feeder, using the WIA interface, but does not work.
ImageEnMView1.MIO.Acquire (ieaWIA);

Likewise in the example "Multi image" of xequte and does not work, only TWAIN.
11   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Sep 08 2015 : 04:51:43
Hi

Can you email us for an updated wia.pas for testing?

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
jas Posted - Sep 07 2015 : 06:03:25
Hi

Yes, that is correct. I used exactly your code above. In both cases, dialog for device selection is shown, next the scanner interface itself and finally, when I press "Scan", nothing is transfered in case of ImageEnMView component. ImageEnView works ok.

Tested on Windows 8.1 x64 and Windows Server 2008 R2 x64. I compiled both 32 and 64-bit versions with same result.

And I tested with two different devices, HP ScanJet 5590 and Epson 5690.
xequte Posted - Sep 07 2015 : 04:46:02
Hi

That is unusual as both components use the same code at the backend (TIEAcquire) so the code is virtually the same.

To clarify, running these two code blocks gives you different results, correct?

  imageenmview1.MIO.SelectAcquireSource([ieaWIA]);
  imageenmview1.mio.acquire();

  imageenview1.IO.SelectAcquireSource([ieaWIA]);
  imageenview1.io.acquire();


What is your operating system, including 32 or 64 bit? And are you compiling to 32 or 64 bit?


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
jas Posted - Sep 04 2015 : 01:14:30
Hello
Yes, driver is working. Software from scanner producer works ok.
And yes, WIA demo works also ok, BUT it uses ImageEnView, not ImageEnMView. That's the difference.

When I tried to compare both variants, I found that ImageEnView.IO.Acquire method is implemented in imageenio.pas unit, but ImageEnMView.MIO.Acquire is in iemio.pas unit. And both codes are slightly different.

So my conclusion is that there must be some problem in combination of ImageEnMView component and WIA interface, probably in ImageEnMView.MIO.Acquire method.

Thank you.

-----------
Update:
I traced the code up to function TWiaDataCallBack.BandedDataCallback in iewia.pas unit. Does not matter, if I use ImageEnMView component or ImageEnView, it all ends here.

But...if I use ImageEnView, param lMessage of TWiaDataCallBack.BandedDataCallback function gets these values (one by one): IT_MSG_DATA_HEADER, IT_MSG_DATA and IT_MSG_TERMINATION.

If I use ImageEnMView component, only these values are passed:
IT_MSG_DATA_HEADER and IT_MSG_TERMINATION

So as I understood, no actual data are transfered, I think.
xequte Posted - Sep 03 2015 : 16:20:00
Hi

Unfortunately I cannot reproduce that.

Have you confirmed the WIA driver is working using a different application?

Does it work if you use the WIA Scanner demo?

You could try stepping through the ImageEn code to see where it fails?

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
jas Posted - Sep 03 2015 : 07:53:30
Hello. I would like to re-open this topic. I have same problem.
I'm using Delphi XE7, ImageEn version 6.0.1.

Calling "ImageEnMView.MIO.Acquire" just returns FALSE and nothing is scanned. Problem is only when I use WIA interface, TWAIN works ok.

A tried your own "multi" demo (c:\Program Files (x86)\ImageEn\Demos\Multi\Multiview\) with same result - it does not work with WIA.

I have to use ImageEnMView instead of simple ImageEnView, because I need to scan multiple pages.

Thank you.
fab Posted - Mar 23 2012 : 13:09:13
No, you have to scan using TImageEnMView and then execute:

ImageEnMView.MIO.SaveToFileTIFF(...);

This because TImageEnView can handle a page at the time.
izaque Posted - Mar 23 2012 : 12:10:41
Ok, but maybe can help me with the following question:

I'm scanning with multi-page scanner, and I wonder if I can use the "ImageEnView1.IO.SaveToFileTiff" to save multi-page Tiff?
fab Posted - Mar 23 2012 : 11:23:48
Version 3.1.2 is no more supported. Have you tried the "multi" demo of version 4.1.0?
izaque Posted - Mar 23 2012 : 04:21:51
Well, what can be more específicio, is that ImageEn version is 3.1.2, Windows 7 64-bit, Kodak i1220 Scanner, using feeder.

As he passed the line of code "if (iemvImagensScanner.MIO.Acquire (ieaWIA)) then"

nothing happens, I do not return any error, just does not scan anything.

It also happens that, when I use "if (iemvImagensScanner.MIO.Acquire (ieaTWain)) then" it to scan, the nothing, scanning all documents feeder.
xequte Posted - Mar 22 2012 : 19:32:34
Hi

Can you be more specific? Do you get some kind of error? If you step through the code where does it fail?

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com