WIA를 통해 네트워크 스캐너와 작동하는 프로그램을 작성 중입니다. 한 페이지 만 스캔 할 때 모든 것이 잘 작동합니다. 내가 공급 장치의 전원을 켜면 :WIA + 네트워크 스캐너 (adf = 1 페이지)
foreach (WIA.Property deviceProperty in wia.Properties)
{
if (deviceProperty.Name == "Document Handling Select")
{
int value = duplex ? 0x004 : 0x001;
deviceProperty.set_Value(value);
}
}
를 프로그램은 스캔, 여전히 공급 장치에 문서이며, (스캐너 스캔 계속) COM 오류로 탈락하는 신호를 수신합니다. 다음은 코드가 공급 장치에 페이지를 확인입니다 :
imgFile = (ImageFile)WiaCommonDialog.ShowTransfer(item, wiaFormatJPEG, false);
는 불행하게도 WIA WSD를 사용하는 예를 찾을 수 없습니다 :
//determine if there are any more pages waiting
Property documentHandlingSelect = null;
Property documentHandlingStatus = null;
foreach (Property prop in wia.Properties)
{
if (prop.PropertyID == WIA_PROPERTIES.WIA_DPS_DOCUMENT_HANDLING_SELECT)
documentHandlingSelect = prop;
if (prop.PropertyID == WIA_PROPERTIES.WIA_DPS_DOCUMENT_HANDLING_STATUS)
documentHandlingStatus = prop;
}
if ((Convert.ToUInt32(documentHandlingSelect.get_Value()) & 0x00000001) != 0)
{
return ((Convert.ToUInt32(documentHandlingStatus.get_Value()) & 0x00000001) != 0);
}
return false;
이 사진 코드를 얻기. WSD를 통해 여러 개의 이미지를 가져올 수있는 설정이있을 수 있습니다.
나는 또한 제조사의 드라이버를 설치하여 해결 한 [동일한 문제] (http://stackoverflow.com/questions/27473142/cannot-read-second-page-scanned-via-adf/31908751#31908751)가 있습니다. . –