Source code documentation samples give simple and easy method to install a needed feature into your application. Want to read barcode from image with barcode reader SDK in your SAP PowerBuilder app? ByteScout Premium Suite is designed for it. ByteScout Premium Suite is the bundle that includes twelve SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording.
Want to quickly learn? This fast application programming interfaces of ByteScout Premium Suite for SAP PowerBuilder plus the guidelines and the code below will help you quickly learn how to read barcode from image with barcode reader SDK. This SAP PowerBuilder sample code is all you need for your app. Just copy and paste the code, add references (if needs to) and you are all set! Use of ByteScout Premium Suite in SAP PowerBuilder is also described in the documentation included along with the product.
Trial version of ByteScout Premium Suite is available for free. Source code samples are included to help you with your SAP PowerBuilder app.
//Creating the Instance of the OLE object as barcodeReader OLEObject barcodeReader barcodeReader = Create OLEObject //Connecting to the Barcode Reader object If barcodeReader.ConnectToNewObject("Bytescout.BarCodeReader.Reader") < 0 Then Destroy barcodeReader MessageBox("Error", "Can't create Bytescout.BarCodeReader.Reader ActiveX/COM object") Return End If // Enable barcode types to find: barcodeReader.BarcodeTypesToFind.Code39 = True barcodeReader.BarcodeTypesToFind.Code128 = True // Read barcode from image file barcodeReader.ReadFromFile("barcode.png") For i = 0 To barcodeReader.FoundCount - 1 // Use barcodeReader.GetFoundBarcodePage(i), barcodeReader.GetFoundBarcodeType(i) and barcodeReader.GetFoundBarcodeValue(i) // to get the found barcode information Next Destroy barcodeReader