ByteScout Barcode Reader SDK – VB.NET – Decode Damaged Code 39

  • Home
  • /
  • Articles
  • /
  • ByteScout Barcode Reader SDK – VB.NET – Decode Damaged Code 39

ByteScout Barcode Reader SDK – VB.NET – Decode Damaged Code 39

Program.vb

Imports Bytescout.BarCodeReader

Module Program

    Sub Main()

        Try
            ' Create and activate Bytescout.BarCodeReader.Reader instance
            Using reader As Reader = New Reader("demo", "demo")
            
                ' Set barcode type to find
                reader.BarcodeTypesToFind.Code39 = True

                ' Read barcodes
                Dim barcodes() As FoundBarcode = reader.ReadFrom("corrupted_barcode_code39.png")

                For Each code As FoundBarcode In barcodes
                    Console.WriteLine("Found barcode with type '{0}' and value '{1}'", code.Type, code.Value)
                Next

            End Using

        Catch ex As Exception
            Console.WriteLine(ex.Message)
        End Try

        Console.WriteLine()
        Console.WriteLine("Press any key to exit...")
        Console.ReadLine()

    End Sub

End Module


  Click here to get your Free Trial version of the SDK

prev
next