[C# 4.0 - WPF] : Disable Twain Msg on HP 7000 s2

Discussions about TWAIN & WIA scanning in GdPicture.NET using GdPictureImaging.
Post Reply
Dr3w
Posts: 22
Joined: Fri Nov 09, 2012 6:22 pm

[C# 4.0 - WPF] : Disable Twain Msg on HP 7000 s2

Post by Dr3w » Fri Nov 09, 2012 7:10 pm

Hi at all,
(at first.. sorry for my bad english), I'm developing a 'remote scanner acquisition' app, as a demo prj.

On the server side I have a .Net "service" that manage the acquisition of our rolling scanner (HP scanjet Enterprise 7000s2).
On the client side I have a client app, with which, the final user will manage the acquired images and check the twain messages too (eg. roll errors, no paper etc etc.).

HP Twain messages are obviously displayed on the server side (that call twain functions)...
This information messages lock my process (acquire-->send to client) until I manually close them on the server.

I need to acquire many documents, the multipage acquisition is the best solution (TwainSetAutoScan(true)). I've not problems with single doc acquisition.
I've tried to call TwainSetErrorMessage (false), supposing to stop these messages (...but, they're not error messages...).

Is there a method to hide these messages?

Thank you.
Andrea.

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: [C# 4.0 - WPF] : Disable Twain Msg on HP 7000 s2

Post by Loïc » Fri Nov 09, 2012 7:56 pm

Hello,

Could you provide a screenshot with the message box displayed?

Kind regards,

Loïc

Dr3w
Posts: 22
Joined: Fri Nov 09, 2012 6:22 pm

Re: [C# 4.0 - WPF] : Disable Twain Msg on HP 7000 s2

Post by Dr3w » Mon Nov 12, 2012 10:20 am

Good morning Loïc,
thanks.

Here an example of no paper messages sequence (note the Msg Label -HP Twain- ):

I used a workaround, via win API (close all MsgBox during the docs acquire).
But I would find something more manageable...

Thanks.
Andrea.

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: [C# 4.0 - WPF] : Disable Twain Msg on HP 7000 s2

Post by Loïc » Tue Nov 13, 2012 3:40 pm

Hello Andrea,

These boxes come from your TWAIN driver. And unfortunately there is no way to ask him to don't display them. The workaround sometime used in the industry is what you already do: using winAPI to intercept the messagebox in order to release it.

Kind regards,

Loïc

Dr3w
Posts: 22
Joined: Fri Nov 09, 2012 6:22 pm

Re: [C# 4.0 - WPF] : Disable Twain Msg on HP 7000 s2

Post by Dr3w » Fri Nov 16, 2012 7:00 pm

Hi Loïc,
thank you :wink: .

All the best.
Andrea.

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: [C# 4.0 - WPF] : Disable Twain Msg on HP 7000 s2

Post by Loïc » Sun Nov 18, 2012 5:59 pm

welcome :)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest