AcquireModal and scan one by one, DSIsNotOpen Error

Questions, comments and suggestions concerning VintaSoft Twain .NET SDK.

Moderator: Alex

Post Reply
joher1988
Posts: 1
Joined: Sun Jul 25, 2010 9:39 pm

AcquireModal and scan one by one, DSIsNotOpen Error

Post by joher1988 » Mon Jul 26, 2010 10:33 am

Hello, I have a litle problem. When i try scan documents paeges one by one, first page scan normal, but next pages don't scan and Twain ErrorCode=DSIsNotOpen.

Code: Select all

 
              _twain.SourceIndex = TwainHelper.FindSourceIndex(_twain, options.dataSource);
                _twain.OpenDataSource();
                if (_twain.FeederPresent)
                {
                    if (options.autoFeed)
                    {
                        if (_twain.XferCount != -1)
                            _twain.XferCount = -1;
                        if (!_twain.FeederEnabled)
                            _twain.FeederEnabled = true;
                        if (_twain.AutoFeed != options.autoFeed)
                            _twain.AutoFeed = options.autoFeed;
                    }
                    else
                    {
                        if (_twain.XferCount != 1)
                            _twain.XferCount = 1;
                        if (_twain.AutoFeed != options.autoFeed)
                            _twain.AutoFeed = false;
                    }
                }
                
                _twain.ShowUI = true;
                _twain.DisableAfterAcquire = false;
                while (_twain.AcquireModal()) ;
                twainScanFinished(null, null);
            }
            finally
            {
                _twain.CloseDataSource();
            }
Where is my misstake?

Alex
Site Admin
Posts: 1474
Joined: Thu Jul 10, 2008 2:21 pm

Re: AcquireModal and scan one by one, DSIsNotOpen Error

Post by Alex » Wed Jul 28, 2010 8:12 am

Hello,

Please send us more info about your problem to support@vintasoft.com.

When do you have the DSIsNotOpen error?

Best regards, Alexander

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest