saraff-9EB1047A4BEB4cef8506B29BA325BD5A / Saraff.Twain.NET

Saraff.Twain.NET is the skillful scanning component which allows you to control work of flatbed scanner, web and digital camera and any other TWAIN device from .NET environment. You can use this library in your programs written in any programming languages compatible with .NET technology.
GNU General Public License v3.0
102 stars 35 forks source link

Saraff.Twain.Sample3 has error : specified cast is not valid #23

Closed vrdisoft closed 6 years ago

vrdisoft commented 6 years ago

Dir Mr Saraff, My issue is when I select resolution in your Saraff.Twain.Sample3, shows error specified cast is not valid.

saraff

How can I resolve the problem? Thank for your help.

saraff-9EB1047A4BEB4cef8506B29BA325BD5A commented 6 years ago

Hello, @parinazk Likely, your a data source (scanner driver) is not compliant TWAIN Specification. Try use another a data source. Also, try use latest version of a samples.

vrdisoft commented 6 years ago

I try another data source (WIA) in Saraff.Twain.Sample3,could scan but Saraff.Twain.Sample2 could not scan by WIA driver and show error: TwainException: DG DAT MSG out of expected sequence. ConditionCode = SeqError; ReturnCode = Failure; How can I resolve the problem?

saraff-9EB1047A4BEB4cef8506B29BA325BD5A commented 6 years ago

Hello, @parinazk Problem in your a data source (scanner driver), it is not compliant TWAIN Specification. Try use another a data source. You can write about this problem to a customer service of HP. Also try update your driver of scanner to latest version.