Hi.

I´m developing a document management application using "imaging for windows 2.7". I´ve used these components before, though using c++. I´m trying to set my scanner to duplex mode using the setscancapability function. in c++ everything works fine. In c# the function doesn´t return an error, but it does not set the scanner to duplex mode. 

Has anyone experienced the same problem. Any ideas to solve this problem?

Here is a part of my source:


private AxScanLibCtl.AxImgScan objScan;
const short CAP_SCAN_IMAGE_DUPLEX = 110; 
[MarshalAs(UnmanagedType.VariantBool)] public bool bUnmanagedBool;

bUnmanagedBool = true;

int iResult = -1;
iResult = objScan.SetScanCapability(CAP_SCAN_IMAGE_DUPLEX, bUnmanagedBool);


Thanks in advance.

PS: sorry for my poor english