| Author |
Topic  |
|
gorchi

Slovenia
27 Posts |
Posted - Nov 14 2026 : 12:11:26
|
Nigel, if I use WIA 1, then Acquire with the dialog works, I set 300 dpi and colour scan, then after closing the dialog, it took 1 min 32 sec (or a second less) to get the scan into the application. Best regards, Goran
P.S: Here is log, but it contains data not only from today.
attach/gorchi/20261114121327_2026-11-14_wiatrace.zip 322.04 KB |
 |
|
|
xequte
    
39617 Posts |
Posted - Nov 15 2026 : 13:25:35
|
Hi Goran
Thanks for the tests and the WIA log, they were very helpful.
Acquire with dialog: The log entry “IWiaWow64::InvokeGetImageDlg failed, hr = 0x800706F4” pointed to a bug in ImageEn’s WIA 2.0 code that can cause the dialog to fail for a 32-bit applications on 64-bit Windows. I have fixed it for the next build.
Speed: Your 1:32 with WIA 2.0 confirms that the HP network (WSD) driver is just as slow with WIA 2.0 as with WIA 1.0 when scanning without a dialog. When you have the new build, could you time a 300 dpi colour scan using “Acquire with dialog” (WIA 2.0)? That uses Windows’ own scan dialog, so we can see whether it matches the roughly 14 s of the Store app.
TWAIN and JPEG: ImageEn always asks TWAIN drivers for uncompressed data. Since your boss scanned over Remote Desktop, the JPEG artefacts most likely come from the remote scanning redirection, which compresses images to save bandwidth. Check its quality settings, or compare with a scan on a local PC.
Can you email me for the new build. It also includes the 96 dpi fix and WIAParams.LastErrorText for the Canon test.
Nigel Xequte Software www.imageen.com
|
 |
|
|
gorchi

Slovenia
27 Posts |
Posted - Nov 25 2026 : 03:25:34
|
Dear Nigel, today I finally had time to test WIA2 and Canon 9000FMk2. Here is the log (using ImageEn 15.5.5 beta from 2-3 weeks ago):
25.11.2026 10:20:23 Device selected: CanoScan 9000F Mark II||0||WIA||SCN
25.11.2026 10:20:23 According to AcquireParams.SelectedSourceAPI it is WIA
25.11.2026 10:20:23 Scanning will be performed using WIA 2
25.11.2026 10:20:26 User pressed scan button
25.11.2026 10:20:26 Requested scan in full color
25.11.2026 10:20:26 Writing params in MIO.AcquireParams
25.11.2026 10:20:26 Basic params: 200 dpi, color depth: Barvno (24-bit), orientation: Pokon#269;no, rotation: 0
25.11.2026 10:20:26 Writing params in MIO.AcquireParams.. done.
25.11.2026 10:20:26 Requesting scan start from a device (driver)
25.11.2026 10:20:26 scanning document, 0 ms 100%
25.11.2026 10:20:26 Error during scanning:
Transfer (no image was received): Unspecified error ($80004005)
I will test scanning speed in the evening (I hope) at home and post results later. Best regards, Goran |
 |
|
|
gorchi

Slovenia
27 Posts |
Posted - Nov 25 2026 : 17:05:28
|
Hi Nigel, here are speed test with WIA2 scanning, JPEG and bitmap transfer. Hope it helps.
attach/gorchi/2026112517143_2026-11-25_Scanning.zip 1.83 KB
I tried scanning with the dialog. This also changed and if I am right, this is WIA2 Windows dialog? The picture there is result of preview which by my opinion, it was a bit slow, like 200 dpi was used...

I am sorry that it took me so much time to respond.
Best regards, Goran |
 |
|
|
xequte
    
39617 Posts |
Posted - Nov 25 2026 : 21:17:49
|
Hi Goran
Thanks, no problem about the time, these results help.
HP speed: With WIA 1 and WIA 2, and with BMP and JPEG, the network scanner takes the same 92 s, always waiting at 49%. So it isn't anything ImageEn requests. Yes, the dialog you see now is the Windows (WIA 2.0) scan dialog. Could you time a full 300 dpi colour scan from it (click "Opti#269;no preberi", not the preview)? If that also takes about 90 s, Windows itself is limited by the printer.
DPI: How do you log the DPI? The DpiX and DpiY parameters of OnAcquireBitmap should now give 300. MIO.Params for the new image isn't set until after OnAcquireBitmap.
Canon: "no image was received" means the driver reported success but sent no image. Could you run the WIAScanner demo with "Use Wia 2.0" ticked, select the Canon, click "Select Item" and send me a screenshot of the list? Please also try "Acquire with dialog" and let me know whether the Windows dialog can scan with the Canon. I'm also adding a WIA log option for the next build, which will show exactly where it goes wrong.
Nigel Xequte Software www.imageen.com
|
 |
|
|
xequte
    
39617 Posts |
Posted - Nov 25 2026 : 21:25:29
|
You can email me for the updated build.
Before scanning, set ImageEnMView1.MIO.WIAParams.LogFile := 'C:\Temp\WiaLog.txt'. Then scan with the Canon (WIA 2.0) and with the HP, and send me the log.
Nigel Xequte Software www.imageen.com
|
 |
|
|
gorchi

Slovenia
27 Posts |
Posted - Nov 26 2026 : 02:16:08
|
Hi Nigel, for DPI logging in those files I use this instruction:
sTemp := IntToStr(Round(iemvSlike.MIO.AcquireParams.XResolution));
glScannerSkup.LoggerScan(Format('Basic params: %s dpi, color depth: %s, orientation: %s, rotation: %s',
[sTemp,
Acquire_PixelType[AcquireParams.PixelType],
Acquire_Orientation[AcquireParams.Orientation],
Acquire_Rotation[AcquireParams.Rotation] ] )); Yesterday I tried scanning with the dialog but the problem is that the scanner log is practically empty. There was only the line when OnAcquireBitmap received data and I guess this is useless if You do not have in the log the time, when I pressed the button acquire in the dialog. By my feeling the time to scan the page in 300 dpi was about the same, maybe a little less. I will use my stopwatch to time it tonight.
I would do the test with WIAScanner demo but it seems You have added the WiaParams.LogFile with newer version than I have. I have 15.5.5 Beta You sent me via e-mail the other day. |
 |
|
|
xequte
    
39617 Posts |
Posted - Nov 26 2026 : 13:28:32
|
Hi Goran
We have a newer beta than that with improved logging. You should email me for that one.
Nigel Xequte Software www.imageen.com
|
 |
|
|
gorchi

Slovenia
27 Posts |
Posted - Nov 26 2026 : 18:10:48
|
Hi Nigel, as promised I just timed the HP slow WIA2 driver. I tested it 2 times; in about 13 seconds the scanner reader came from park position to the end of the page. 1 min and 30 from the start of scanning, the reader started returning to the park position, that is about 77 secs afterit moved accross whole page. Then 6 seconds later the scanned page appeared in my application. So it took 1 min 36 seconds from the moment I pressed scan button till the picture appeared in application, for 300 DPI color scan of A4 page. I'll send You an email when I come to my job in the morning. Thank You. |
 |
|
|
gorchi

Slovenia
27 Posts |
Posted - Nov 27 2026 : 03:02:07
|
Hi Nigel, Thank You for the email, I updated the ImageEn component and rebuilded WIAScanner. Here is the log if I use just click Acquire on Canon 9000F Mk2: attach/gorchi/2026112725854_WiaScannerLog.zip 995 Bytes
I tried also Acquire with dialog and here the fun began. The scanner just started scaning, page after page and I stopped it after page 5. This scanner does not have document feeder so it kept scanning same page over and over. Here is the log:
27.11.2026 09:55:04.179 WIA log. ImageEn 15.5.6 Beta, 32-bit application, Windows 10.0 build 26200
27.11.2026 09:55:04.179 WiaVersion setting 2, active WIA version 2
27.11.2026 09:56:01.582 IWiaItem2.DeviceDlg result $00000001, 3 files
27.11.2026 09:56:01.582 Acquire dialog (WIA 2.0): Acquire dialog: Cancelled ($00000001)
It is so short so I just copy-paste the log data.
Hope it helps.
Best regards, Goran |
 |
|
|
xequte
    
39617 Posts |
Posted - Nov 27 2026 : 21:59:41
|
Hi Goran
Thank you, the log showed exactly what was wrong. The Canon driver describes its flatbed as a "folder", and ImageEn then asked it to transfer the folder's sub-items. It has none, so nothing was scanned. I have fixed this.
The repeated scanning in the dialog is most likely the flatbed's page count being set to "all pages", which a flatbed never runs out of. ImageEn now sets it to one page before showing the dialog.
I've just sent you a new build. Could you then try both Acquire and Acquire with dialog on the Canon with the log enabled, and send me the log? It now also lists the scanner's items and their settings.
Nigel Xequte Software www.imageen.com
|
 |
|
Topic  |
|
|
|