Gets or sets the Code128Options for the barcode control.
Syntax
Example
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 |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also