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
 Bug - no onprogress event - Twain
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

arotton

2 Posts

Posted - Jan 17 2014 :  13:07:33  Show Profile  Reply
progress between twain pages .. onprogress event not executing for ImageEnMView
tested with Demos\ImageAcquisition\AllAcquire

w2m

USA
1990 Posts

Posted - Jan 21 2014 :  11:03:55  Show Profile  Reply
I tested the demo you are referring to and found that it works as expected.

The Twain dialog displays the scanners progress, then when the scan is complete the progress bar on the form also show progress when the image is transferred to ImageEnMView.

This is expected because this is the code that sets the progressbar position:
procedure TfrmMain.ImageEnIO1Progress(Sender: TObject; per: Integer);
const
  Show_Images_As_Acquired = True;
begin
  ProgressBar1.Position := per;
  if Show_Images_As_Acquired then
  begin
    ImageEnMView1.Update;
    Application.ProcessMessages;
  end;
end;

This code only executes when the image is transferred to ImageEnMView.

If you want to control the scanner without using a Twain Dialog then look at the Demos\ImageAquisition\WIAScanner demo. This demo sets the scanner settings by using ImageEnView1.IO.WIAParams. With this demo as the scan ocurrs the progress is shown by the progressbar on the main form for the application.

William Miller
Adirondack Software & Graphics
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html
Go to Top of Page

madas

Germany
21 Posts

Posted - Oct 08 2015 :  08:39:10  Show Profile  Reply
Have the same problem. The OnProgress event gets not fired for Twain scaning. Only for WIA-scaning. But it isn't reporting the progress of the scaning process only the transfer to the ImageEnMView which for my eyes makes no sence because the transfer is done in milliseconds. :(

Could be tested with the "Demos\ImageAcquisition\AllAcquire" Demo.
Very strange behavior.

I would expect that the OnProgress event gets fired for all operations which were done with the ImageEnMView component. Loading, Saving, scaning and so on.

via ImageEnMView1.MIO.TwainParams.ProgressIndicators := chbxTwainProgress.Checked; you can hide the org. twain progress dialog so then i want to show the progress of the scaning process within my own window. Is there a chance to implement this behavior? Any example?

thx in advance.

madas

PS: WIA scaning is annoying. :D

Go to Top of Page

xequte

39066 Posts

Posted - Oct 08 2015 :  20:13:49  Show Profile  Reply
Hi

I cannot reproduce that with the AllAcquire demo. It correctly returns the progress when acquiring from my test Twain devices.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

madas

Germany
21 Posts

Posted - Oct 09 2015 :  00:53:48  Show Profile  Reply
Sorry to ask again but you are using the twain drivers and not the wia drivers?

Btw: the OnFinishWork event isn't fired too. :(

madas

PS: I am using a Fujitsu fi-5220C.
Go to Top of Page

xequte

39066 Posts

Posted - Oct 09 2015 :  04:10:04  Show Profile  Reply
Hi

Yes, it is Twain and the OnFinishWork event is fired too. Perhaps your driver does not support progress return?

Are you using v6.2.0?


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

madas

Germany
21 Posts

Posted - Oct 12 2015 :  00:29:12  Show Profile  Reply
Hi,

Nigel i use 6.2.0.27.5658 of ImageEn purchased last week. :)

madas
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: