WiseJ 31.9 barcode reader

0
0

I can’t seem to get the barcode reader to work.  The app compiles and runs, but when I push my button the reader doesn’t seem to read.  I am using VB.net

I believe I have installed the packages that are needed

WiseJ-3

WiseJ-3-Barcode

WiseJ-3-Camera

WiseJ-3-MobileInegration

I an running this from a IIS server using an iPhone with the WiseJ TestFlight app

On the page I added the WiseJ.Web.Ext.Camera.Camera control and named it Camera1

 

 

The code is based off https://docs.wisej.com/extensions/extensions/barcode

When press the button I see the AlertBox saying “Scanning barcode” but I don’t see an alert when I put the camera over a barcode.  I don’t actually see it doing anything at all.  I am not sure what I am doing wrong.  Any help would be great.

Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
AlertBox.Show(“Scanning barcode”)
Dim reader = New BarcodeReader()
reader.Camera = Me.Camera1

reader.ScanMode = ScanMode.Automatic

‘ handle successful scans.
AddHandler reader.ScanSuccess, AddressOf Reader_ScanSuccess

‘ handle failed scans.
AddHandler reader.ScanError, AddressOf Reader_ScanError
End Sub

Private Sub Reader_ScanError(ByVal sender As Object, ByVal e As ScanEventArgs)
AlertBox.Show(e.Data)
End Sub

Private Sub Reader_ScanSuccess(ByVal sender As Object, ByVal e As ScanEventArgs)
AlertBox.Show(e.Data)
End Sub

  • You must to post comments
0
0

Hi Haas,

Does the camera show up on the mobile device?

If the camera is missing

The Camera JavaScript API only works on localhost or secure (https) connections.

 

If the camera is not missing

I tried the sample from iOS Safari, Wisej.NET Mobile, and Windows with a webcam and it seems to work ok. What is the version of the iPhone?

We also have a live sample here that demos the barcode scanning functionality, does this work? https://demo.wisej.com/barcode/

 

Regards,

Levie

 

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.