0

我下载Refinery.Barcodes.Reader.dll了,正在使用这个:

Imports BusinessRefinery.Barcodes.Reader

Partial Class _Default
    Inherits System.Web.UI.Page

    Protected Sub btnread_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnread.Click
        Dim barcodes As String() = BarCodeReader.scanBarCode("D://QRSAMPLE.png", BusinessRefinery.Barcodes.Reader.BarCodeType.QRCODE)
    End Sub
End Class

它运行良好;没有错误被抛出。但是我如何看到解码过程的结果呢?

4

1 回答 1

0

尝试myTextBox.Text = barcodesEnd Sub.

编辑:

看到评论后,我认为您遇到的是 scanBarCode 返回一个数组,而不是一个字符串。检查一下,然后尝试这样的事情:

Imports BusinessRefinery.Barcodes.Reader

Partial Class _Default
    Inherits System.Web.UI.Page

    Protected Sub btnread_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnread.Click
        Dim barcodes As String() = BarCodeReader.scanBarCode("D://QRSAMPLE.png", BusinessRefinery.Barcodes.Reader.BarCodeType.QRCODE)
        myTextbox.Text = barcodes(0)
    End Sub
End Class
于 2013-03-29T20:43:23.917 回答