A demonstration on using the UltraCode128Barcode™ control to hide the human-readable text.
Prerequisite topics required to understand this material.
The UltraCode128Barcode exposes the Boolean ShowText property. When this property is set to true , its default value, the human readable text or data of the bar code, as it is sometimes called, is visible under the barcode. This property must be set to false to stop the human readable text from being rendered on the screen.
UltraBarcode supported Symbologies
The following code samples demonstrate how to use UltraCode128Barcode ShowText property to either display or hide the human-readable barcode text. By default, the property is set to true , which displays the text. This property must be set to false in order to hide the human-readable text.
In C#:
UltraCode128Barcode Barcode = new UltraCode128Barcode(); Barcode.Data = "1234567890"; Barcode.CodeType = Code128CodeType.Standard; Barcode.ShowText = false;
In Visual Basic:
Dim Barcode As New UltraCode128Barcode() Barcode.Data = "1234567890" Barcode.CodeType = Code128CodeType.Standard Barcode.ShowText = False