ActiveReports Developer 7
Code128 Property
See Also  Example
GrapeCity.ActiveReports.v7 Assembly > GrapeCity.ActiveReports.SectionReportModel Namespace > Barcode Class : Code128 Property

Glossary Item Box

Gets or sets the Code128Options for the barcode control.

Syntax

Visual Basic (Declaration) 
Public Property Code128 As Code128Options
C# 
public Code128Options Code128 {get; set;}

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 BasicCopy 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

See Also