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
 Unstable Scanner Selection!
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

ImageEnSA

14 Posts

Posted - Sep 19 2019 :  15:30:01  Show Profile  Reply
I'm using Fujitsu fi-7160 scanner and it has a professional software. When I use the below code, its call the Fujitsu software. However, in some times, it calls windows scanner software and it causes my software to hangs !! I don't want that

Is there any way to make sure it calls the Fujitsu manufactural software?
Please help








procedure TScannerF.Button4Click(Sender: TObject);
var
  AcquireApis : TIEAcquireApis;

begin
  if ImageEnMView1.MIO.AcquireParams.SelectedSource.API = ieaNone then
  begin
      AcquireApis := [];
  if chkTwain.checked then
    Include( AcquireApis, ieaTwain );
  if chkWIA.checked then
    Include( AcquireApis, ieaWIA );
  if chkDCIM.checked then
    Include( AcquireApis, ieaDCIM );

  if AcquireApis = [] then
    messagedlg( 'You havent select scanner', mtInformation, [mbOK], 0 )
  else
  begin
    ImageEnMView1.MIO.SelectAcquireSource( AcquireApis );
    UpdateControlStatus( True );
  end;

  end;

  if (cmbColors.Enabled ) and
     ( not ImageEnMView1.MIO.AcquireParams.IsPixelTypeSupported( TIEAcquirePixelType( cmbColors.ItemIndex ))) then
  begin
    MessageDlg( 'The selected color is not supported by your device.', mtError, [mbOK], 0 );
    exit;
  end;

  fAborted := False;
  btnAbort.Enabled := True;
  btnAbort.Visible := True;
  btnAcquire.Enabled := False;
  try
    Screen.Cursor := crHourglass;
   // ImageEnMView1.Clear;
    SaveProperties;
    ImageEnMView1.MIO.Acquire;
  finally
    btnAbort.Visible := False;
    btnAcquire.Enabled := True;
    Screen.Cursor := crDefault;
  end;
  ProgressBar1.Position := 0;
end;

xequte

38613 Posts

Posted - Sep 19 2019 :  18:21:40  Show Profile  Reply
Hi

This is not something that can be controlled from within ImageEn. Is there any pattern to when you get the Windows vs the Fujitsu dialog?

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: