I'm not sure when this stopped working (it did work at some point - maybe in version 6), but the XferCount property is no longer working. The scanner is always scanning ALL pages that are loaded, even though we only want to scan 1 document by setting the XferCount property = 1.
This is happening with HP Scanjet 5000/7000 in both WIA and TWAIN drivers.
I can't find any other options to control auto feeding and restrict it to a single page.
XferCount property not working
Moderator: Alex
-
- Site Admin
- Posts: 2397
- Joined: Thu Jul 10, 2008 2:21 pm
Re: XferCount property not working
Hello Derek,
What code do you use?
You should disable the document feeder and set the XferCount to 1 if you want to acquire only one image from the scanner.
Best regards, Alexander
What code do you use?
You should disable the document feeder and set the XferCount to 1 if you want to acquire only one image from the scanner.
Best regards, Alexander
-
- Posts: 4
- Joined: Wed May 12, 2010 2:12 am
Re: XferCount property not working
Hi Alex,
The problem is, whenever we try to disable the document feeder we get an exception:
Again, this is on the HP 5000 and 7000 scanners.
Just to reiterate - in version 6.0 we used this code to scan a single page and it worked fine:
The problem is, whenever we try to disable the document feeder we get an exception:
Code: Select all
if (_device.FeederPresent)
{
_device.XferCount = 1;
_device.DocumentFeeder.Enabled = false; // Vintasoft.Twain.TwainDeviceCapabilityException: Cannot set value of capability.
}
Just to reiterate - in version 6.0 we used this code to scan a single page and it worked fine:
Code: Select all
if (_twain.FeederPresent)
{
_twain.AutoFeed = false;
_twain.XferCount = 1;
}
-
- Site Admin
- Posts: 2397
- Joined: Thu Jul 10, 2008 2:21 pm
Re: XferCount property not working
Hello Derek,
Please send log-file generated by SDK to support@vintasoft.com
Here are steps which you should do if you want to generate a log-file of scanner's work:
Please send log-file generated by SDK to support@vintasoft.com
Here are steps which you should do if you want to generate a log-file of scanner's work:
- Set the DeviceManager.Logger.Enabled property to True before the DeviceManager.Open method.
- Set the path to log-file with the DeviceManager.Logger.Filename property if path "c:\vstwain.log" is not accessible by your application.
NOTE: vstwain.log file is created in the user's temporary directory if path specified in the LogFilePath property is not accessible. - Run your application.
- Send us a log-file and detailed description of the problem.