Results 1 to 5 of 5

Thread: Remote Scanning in VBA

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2009
    Posts
    2

    Remote Scanning in VBA

    I have a form in a VBA program that I am (or rather "was" as it doesn't work anymore) using to scan in documents to.
    I have an ActiveX Control Object on the form where the scanned document is displayed once it has been scanned in.
    Also, I have an ImageMan Twain Control (which I think must be there so that any attached scanner can be detected :I didn't actually write the code on the form so I can't tell).
    I have a button called "Select Source" from where the scanner is selected.
    The code behind it is:

    Code:

    Private Sub cmdSelectScanner_Click()
    ImTwain1.SelectScanner
    End Sub

    "ImTwain1" is the ImageMan Twain Control object I referred to earlier.
    Th trouble is it is not detecting the scanner when this "cmdSelectScanner" button is clicked.
    Nothing happens under this event, but it used to work before. What might be a factor is that the scanner it is using is a remote scanner attached to another PC.
    The PC that the scanner is attached to connects to a server via remote desktop and then the program the form is on runs on the server.
    The server does not have a scanner attached to it but it should pick up the scanner on the client as there is software called RemoteScan which allows this to work.
    If I open Microsoft Document Image Scanning on the server over the remote desktop connection, it detects the scanner fine, just not in the form in the program I am using.
    So the RemoteScan software is working perfectly, it is a problem with the
    ImageMan control.
    I tied re-registering the dll's that the form uses ("ImTwain8.ocx" and "IMACTX80.ocx") but that didn't work.
    Has anyone out there any experience using Remoter Scanning and VBA?
    (I have attched an mdb with the form in zipped format)

    Is there any other way of using a Twain scanner in VBA other than the way shown above?
    Any other Image controls that I could use?
    Thanks for any replies.
    Attached Files Attached Files
    Last edited by fonzi; Jan 2nd, 2009 at 05:57 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width