Tattakashi123 / t

Automatically exported from code.google.com/p/twaindotnet
0 stars 0 forks source link

Unsupported capability Automaticrotate #47

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Note: using a scanner that doesn't support auto detect border, and doesn't 
support auto rotate

TestApp throws a TwainException that says "Unsupported capability 
Automaticrotate".  This even BorderDetect or AutoRotate are unchecked. TestVb 
will throw the same exception BorderDetect is checked and AutoRotate is 
unchecked.

The exception is thrown from DataSource.Open(settings) when settings.Rotation 
is not null and the scanner doesn't support these capabilities.  This will 
occur even if AutoRotate and BorderDetect are false.

The attached patch tests changes NegotiateAutomaticRotate and 
NegotiateAutomaticBorderDetection to set these capabilities if the appropriate 
property is true.  If the appropriate property is false it will not attempt to 
set this capability.

Additional changes to MainForm.cs and MainForm.vb are to make the code in each 
more alike.

Original issue reported on code.google.com by mcdon....@gmail.com on 22 Jun 2012 at 9:12

GoogleCodeExporter commented 8 years ago
re-adding patch.  also created server side clone 
https://code.google.com/r/mcdonron-twaindotnet-clone/

Original comment by mcdon....@gmail.com on 3 Jul 2012 at 9:46

Attachments:

GoogleCodeExporter commented 8 years ago
Patch applied.

Thanks!

Original comment by luke.qui...@gmail.com on 15 Jul 2012 at 3:58