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

Delphi Twain and HP Scanner

Forums › TWAIN Classic › Delphi Twain and HP Scanner

  • This topic has 7 replies, 4 voices, and was last updated 12 years, 4 months ago by gabe.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • September 9, 2008 at 4:08 pm #22403 Reply
    Anonymous
    Participant
    • Topics - 60
    • Replies - 107
    • Total Posts - 167

    I’m trying to make a Delphi program scan without showing the UI using Gustavo Daud’s Delphi Twain component. If I use the HP Twain Driver the page is scanned, but when I try to scan a second page, the scanner does not re-scan but simply downloads the first page the I scanned from some place it’s stored it in memory. This does not happen if the UI is enabled, but I want to disable it as it’s so ?#!@@!! slow!

    However, if I use the WIA driver the problem with the scanning tow pages does not happen, but the scanned picture is distorted such that each row is offset from the previous row.

    Anyone any suggestions?

    September 9, 2008 at 7:52 pm #24648 Reply
    Erin Dempsey
    Participant
    • Topics - 6
    • Replies - 26
    • Total Posts - 32

    Tuggie,

    I accidentally deleted your user while cleaning the *pammers.

    I’m really sorry!

    Hilary – TWAIN Admin

    September 15, 2008 at 8:08 am #24649 Reply
    tuggie
    Participant
    • Topics - 0
    • Replies - 3
    • Total Posts - 3

    Still having problems with this. Please can anyone help.

    September 15, 2008 at 8:00 pm #24650 Reply
    gabe
    Participant
    • Topics - 9
    • Replies - 583
    • Total Posts - 592

    does this happen with only your program or do other (Ui-less) programs exhibit the same behavior?

    .

    September 17, 2008 at 8:16 am #24651 Reply
    tuggie
    Participant
    • Topics - 0
    • Replies - 3
    • Total Posts - 3

    The test program provided with delphitwain does the same thing.

    September 17, 2008 at 8:39 am #24652 Reply
    gabe
    Participant
    • Topics - 9
    • Replies - 583
    • Total Posts - 592

    lets try this another way, do programs not using that library work exhibit the same behavior?

    .

    September 22, 2008 at 12:37 pm #24653 Reply
    tuggie
    Participant
    • Topics - 0
    • Replies - 3
    • Total Posts - 3

    Sorry, being dense!

    I’ve downloaded a couple of other programs and tested these. One of them cannot be made to do this at all, but it always unloads the source after scanning, which I can tell because loading the source causes its splash screen to display. The other program can be made to do this as it only unloads the source when told to do so.

    What I don’t understand is that if I send the command enable source to the scanner using the WIA-HP Scanjet 4800 driver, a scan is produced and the source’s status is set to disabled. If I then set the source to enabled again, a second scan is produced. Using the same procedure with the HP 4800 Series Twain driver, the first scan is produced as before, but setting the scanner to enabled a secod time, does not cause the scanning process to take place with the previous scan simply being downloaded again. With this driver, the scanner must be unloaded and re-loaded between scans. I assum this is a solution, but I’d like to know why this happens. The HP UI does not unload the scanner between scans, as the splash screen does not display between scans.

    September 22, 2008 at 3:38 pm #24654 Reply
    gabe
    Participant
    • Topics - 9
    • Replies - 583
    • Total Posts - 592

    but the Hp Ui doesn’t have to play by the rules – it could be using Custom triplets or even non-twain functions.

    The twain.log in %temp% should tell you what it happening, look thru the %temp%twain.log when you control the device and look at it when the Hp Ui does. What is different?

    .

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: Delphi Twain and HP Scanner
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

  • EPSON V600 TWAIN and WIA on Windows 10
  • When and how to use WaitForEvents command ?
  • Problem enumerating list of installed scanners in windows server 2012
  • Failed to create TWAIN progress! Error code is 1260.
  • To get the list of scanners from javascript client side (browser)
  • 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.