Visual Basic (Declaration) | |
---|---|
Public Property Code128 As Code128Options |
C# | |
---|---|
public Code128Options Code128 {get; set;} |
To insert FNC1 character, set “\n” for C#, or “vbLf” for VB to Text property at runtime.
C# | Copy Code |
---|---|
private void detail_Format(object sender, EventArgs e) { this.barcode1.Style = BarCodeStyle.EAN128FNC1; // "\n" is encoded as FNC1 character and displayed none in caption. this.barcode1.Text = "12\n3456\n78"; this.barcode1.Code128.Dpi = 300; this.barcode1.Code128.BarAdjust = +1; this.barcode1.Code128.ModuleSize = 2; } |
Visual Basic | Copy Code |
---|---|
Private Sub Detail1_Format(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Detail1.Format Me.Barcode1.Style = BarCodeStyle.EAN128FNC1 ' vbLf is encoded as FNC1 character and displayed none in caption. Me.Barcode1.Text="12” & vbLf & "3456" & vbLf &"78" Me.Barcode1.Code128.Dpi = 300 Me.Barcode1.Code128.BarAdjust = +1 Me.Barcode1.Code128.ModuleSize = 2 End Sub |