GS1 QR Code | VB.NETByteScout Barcode SDK

GS1 QR Code | VB.NET

Program.vb:

VB
Imports Bytescout.BarCode

Module Program

    Sub Main()

        Try

            ' Create and activate barcode generator instance
            Using barcode As Barcode = New Barcode("demo", "demo")

                ' Set barcode type
                barcode.Symbology = SymbologyType.GS1_QRCode

                ' GS1 QR Code requires a value that is formatted according to GS1 specification.
                barcode.Value = "(01)07046261398572(17)130331(10)TEST5632(21)19067811811"

                ' Save barcode to image file
                barcode.SaveImage("result.png")

            End Using

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

        ' Show image in default image viewer
        Process.Start("result.png")

    End Sub

End Module