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

Re: controll source

Forums › TWAIN Classic › ajax and js evaluation › Re: controll source

July 7, 2006 at 6:42 pm #23347
werowance
Participant
  • Topics - 0
  • Replies - 1
  • Total Posts - 1

if you want to use twain32d.dll (notice the extra D) its free and not a problem to use in a corporate environment. the call is this

select source
‘make this declaration
Private Declare Function TWAIN_SelectImageSource Lib “twain32d.dll” (ByVal hwndApp As Long) As Long

‘this is the function you would asign to a button
TWAIN_SelectImageSource Me.hWnd

heres how to get it to save to file

‘make these declarations

Private Declare Function TWAIN_AcquireToFilename Lib “twain32d.dll” (ByVal hwndApp As Long, ByVal bmpFileName As String) As Integer

Private Declare Sub TWAIN_SetHideUI Lib “twain32d.dll” (ByVal fHide As Long)

‘then heres how to make it scan without showing the ui add this to a button
Call TWAIN_SetHideUI(1)

Call TWAIN_AcquireToFilename(Me.hWnd, “c:ScannedImage.bmp”)

twain32d.dll was hard for me to find, but if you need it ill email it to you.

also if anyone out there knows how to make it scan multiple pages, i need some help with that.

thanks

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