TWAIN Working Group

Newsletter Signup
Donate
Help keep TWAIN free
  • About TWAIN
    • What’s New?
    • News
    • Events
    • Membership
    • Consider a Donation
    • Contact Us
  • Why TWAIN?
  • Developers
    • Driver Developer
    • Application Developer
    • TWAIN Features
    • Specification & Tools
    • Self Certification Process
  • Support Forums
  • Scanner End-User
  • Find Certified Drivers
    • Facebook
    • LinkedIn
    • Vimeo

Canon TWAIN interface issue (CANNOT close source)

Forums › TWAIN Classic › Canon TWAIN interface issue (CANNOT close source)

  • This topic has 2 replies, 2 voices, and was last updated 9 years, 7 months ago by Mishutak.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • August 14, 2011 at 11:43 pm #22704 Reply
    Mishutak
    Participant
    • Topics - 3
    • Replies - 2
    • Total Posts - 5

    Hi all

    we’re experiencing problems with the Canon TWAIN interface for ALL Canon scanners.
    The problem is as follows:
    Our application CANNOT receive message MSG_CLOSEDSREQ (hex 102) untill you move cusor out of Source (TWAIN driver) User interface window or activate this window programmatically (call Windows API function SetActiveWindow). So the Application CANNOT close source.

    Source (TWAIN driver) User interface is called by a tripple:
    DG_CONTROL, DAT_USERINTERFACE, MSG_ENABLEDS
    (with ShowUI and ModalUI fields set to True).

    Absolutely ALL the other TWAIN intefaces are working correct. Could you please advise us on how we can fix this issue with Canon ?

    September 12, 2011 at 4:38 pm #25481 Reply
    brcbuzz
    Participant
    • Topics - 2
    • Replies - 2
    • Total Posts - 4

    Hi, Did you find a solution to your post? I am having the same problem…

    My problem… My form is being loaded as modal. When attempting to scan the form is calling a Twain function “DSMident” and if the power if off on the scanner then a message is being display from the scanner driver. Since my form is modal I cannot close the message and it gives the appearance the application is frozen. I tried implementing the twain capability of CAP_DEVICEONLINE and it always returns false.

    Dim capDeviceOnline As New TwCapability(TwCap.CAP_DEVICEONLINE)

    rc = DScap(appid, srcds, TwDG.Control, TwDAT.Capability, TwMSG.[Get], capDeviceOnline)
    If rc <> TwRC.Success Then
    CloseSrc()
    Return False
    End If

    VB.net on Windows 7 64 bit. Application is set as x86 using Twain_32.dll. Scanner is Canon DR-6010C.

    September 13, 2011 at 12:09 am #25482 Reply
    Mishutak
    Participant
    • Topics - 3
    • Replies - 2
    • Total Posts - 5

    We discovered that in the earlier version of our application it worked fine. At the moment we’re trying to understand the reason for that

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Canon TWAIN interface issue (CANNOT close source)
Your information:




Quick Links

Service Providers
TWAIN Support Forums
Membership
Contact Us
Privacy Policy

Newsletter Signup

TWAIN Working Group Family

TWAIN Working Group
TWAIN Direct®
TWAIN Resources
TWAIN Certified Drivers
PDF/raster

  • Facebook
  • GitHub
  • LinkedIn
  • Vimeo

Recent Topics

  • TWAIN for dental imaging integration
  • PDF/R For who and where?
  • Making searchable PDF with PDF/R
  • Backward compatibility with PDF/A and traditional PDF
  • could not open the twain source. Make sure there is a valid source for your sca
  • Quarterly Newsletter
  • TWAIN Working Group Membership
  • Logo Usage
  • TWAIN License
  • Contact Us
Privacy Policy • Privacy Tools • Copyright © 2021 TWAIN Working Group • by iHwy, LLC • Log in

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.