I am using the following java code which uses the com4j to call the WIA for scanning. The scanner is EPSON DS-510.
This code seems to work for fine for scanning sigle side but when I set the WIA_DPS_DOCUMENT_HANDLING_SELECT to 5 (for duplex + feeder) and run the scan, the line with the statement cmndlg.showTransfer or item.transfer both errors out with not enough storage.
I have the latest driver and this is on windows 10. The same code works fine for any fujitsu scanners.
setDeviceProperty(device, WIA_DPS_DOCUMENT_HANDLING_SELECT, 5);
IItem item = device.items(1);
String filename;
if (itemProps != null) {
setProperties(item, itemProps);
}
Com4jObject com4jObject;
if (showTransferDialog) {
com4jObject = (Com4jObject) cmndlg.showTransfer(item, imageFormatId, false);
} else {
com4jObject = (Com4jObject) item.transfer(imageFormatId);
}
IImageFile imageFile = com4jObject.queryInterface(IImageFile.class);
Any ideas ?