Page 1 of 1

How to run it in other PC

Posted: Tue Nov 18, 2014 12:54 pm
by alialali
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.

Re: How to run it in other PC

Posted: Tue Nov 18, 2014 2:08 pm
by Alex
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

Re: How to run it in other PC

Posted: Wed Nov 19, 2014 11:54 am
by alialali
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.

Re: How to run it in other PC

Posted: Thu Nov 20, 2014 9:56 am
by alialali
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.

Re: How to run it in other PC

Posted: Thu Nov 20, 2014 11:42 am
by Alex
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