How to run it in other PC

Questions, comments and suggestions concerning VintaSoft Twain ActiveX.

Moderator: Alex

Post Reply
alialali
Posts: 6
Joined: Tue Nov 18, 2014 11:47 am

How to run it in other PC

Post by alialali » Tue Nov 18, 2014 12:54 pm

Hi every body.
I have application built by vb.net using demo VSTwain.dll so work fine with scanner, But when I mack the appliation as a setup.msi and install on another PC it's work good but the image not appear in picturebox.

How can I run my application in another PC?

The following code I use it in my application :

Code: Select all

 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        VSTwain1.StartDevice()
        If VSTwain1.SelectSource() Then
            VSTwain1.ShowUI = True
            VSTwain1.Acquire()
        End If
    End Sub

Code: Select all

Private Sub VSTwain1_PostScan(ByVal sender As System.Object, ByVal e As AxVSTWAINLib._IVintaSoftTwainEvents_PostScanEvent) Handles VSTwain1.PostScan
        If e.flag <> 0 Then
            If VSTwain1.ErrorCode <> 0 Then
                MsgBox(VSTwain1.ErrorString)
            End If
        Else
            If Not (PictureBox1.Image Is Nothing) Then
                PictureBox1.Image.Dispose()
                PictureBox1.Image = Nothing
            End If
            PictureBox1.Image = VSTwain1.GetCurrentImage
        End If
    End Sub

Thanks All.

Alex
Site Admin
Posts: 1445
Joined: Thu Jul 10, 2008 2:21 pm

Re: How to run it in other PC

Post by Alex » Tue Nov 18, 2014 2:08 pm

Hello,

VSTwain.dll is the ActiveX control and you need register it on a client computer before usage.

For registering ActiveX on a client computer you need execute the following command from the command line: regsvr32.exe VSTwain.dll

Best regards, Alexander

alialali
Posts: 6
Joined: Tue Nov 18, 2014 11:47 am

Re: How to run it in other PC

Post by alialali » Wed Nov 19, 2014 11:54 am

Hello Alex.
I already registered the VSTwain.dll and the scanner work fine. But the Image not display in the picturebox and can not save on drive.
Thanks a lot.

alialali
Posts: 6
Joined: Tue Nov 18, 2014 11:47 am

Re: How to run it in other PC

Post by alialali » Thu Nov 20, 2014 9:56 am

Hello Alex.
I'm tried tens times with other vb.net applications, but still same problem.
The scanned work fine so I heard the scan noise, But when finish scanning no picture appear on picturebox. This is happened on the client PC only.
In the developer PC every think work OK.
Please how to solve it?

Thanks a lot.

Alex
Site Admin
Posts: 1445
Joined: Thu Jul 10, 2008 2:21 pm

Re: How to run it in other PC

Post by Alex » Thu Nov 20, 2014 11:42 am

Hello,
I'm tried tens times with other vb.net applications, but still same problem.
The scanned work fine so I heard the scan noise, But when finish scanning no picture appear on picturebox. This is happened on the client PC only.
In the developer PC every think work OK.
Please how to solve it?
Please send your web page to support@vintasoft.com, we need analyze your code.

Best regards, Alexander

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest