tmyroadctfig / twaindotnet

MIT License
179 stars 117 forks source link

How to set ScanSettings with multiple attributes #34

Open sjadhav49 opened 8 years ago

sjadhav49 commented 8 years ago

Hi everyone,

I m working with Canon Imageformula DR-C130L on a WPF C# project. I want to set scan settings with custom attributes. Please see the below image: error

I am getting error when below settings are apply like "Do nothing if the data source does not support the requested capability".

This is custom screen I have designed: error1

Some attributes are not applied like page size, page orientation, page auto rotate, scanning side simplex etc.

I have tried many times, Please help me.

sivaktamilan commented 8 years ago

Hi, First, you could check whether the given attributes are supported by the scanner or not? (check the ConditionCode in SetBasicCapability method). If it succeed then you may set the value. And as I know, you missed the Page property in scan settings, apply that too. Page = new PageSettings { Size = PageType.A4 }, Rotation = new RotationSettings ...

Regards, Siva. ..

sjadhav49 commented 8 years ago

Hi, I have checked the given attributes are not supported to the Canon DR-C130L scanner. Some attributes are working some not. I already applied Page property in scan settings. I have checked.

Regards, Shrikant