Barcode
Last updated
Was this helpful?
Last updated
Was this helpful?
The Barcode extension component uses to generate Barcodes on the server and render them on the client. Supports: UPC-A, EAN-8, EAN-13, Code 39, Code 128, ITF, Codabar, Plessey, MSI, QR Code, PDF-417, Aztec, Data Matrix.
Generate Barcodes
Read Barcodes using the device's camera.
The Barcode extension can be added to a Wisej.NET project using NuGet Package Manager.
This class can be used to display values as Barcodes. Use the Text property to set the value and the BarcodeType property to select the type of Barcode. The BarcodeType determines the list of allowed values/formats. Use the ShowLabel property to optionally show the value as a label text (if supported by the BarcodeType).
The following code snippet shows how to parse the barcode data and display it in an AlertBox.
Three scan modes are available:
Automatic: Continuously scans the environment for barcodes.
AutomaticOnce: Stops scanning after one successful barcode detection.
The following example shows how to attach and continuously scan images from the camera instance.
The extension also includes the ability to read and parse barcodes using a given or by attaching to a instance to detect barcodes in real-time on the client.
Using the to parse images on the server is easy. It utilizes ZXing.Net to parse the data from the image.
When attaching to a Camera instance, the processing of images takes place on the client using .
Manual: Requires the user to call the method.
You must attach a handler for and to receive the scanning data from the client widget.