ActiveReports 14 .NET Edition
GrapeCity.ActiveReports Assembly / GrapeCity.ActiveReports.SectionReportModel Namespace / Barcode Class / CheckSumEnabled Property
Example

In This Topic
    CheckSumEnabled Property
    In This Topic
    Determines whether a checksum of the barcode will be computed and included in the barcode when applicable.
    Syntax
    'Declaration
     
    Public Property CheckSumEnabled As Boolean
    public bool CheckSumEnabled {get; set;}

    Property Value

    Boolean.  Default is true.
    Remarks
    • Property is valid for the following barcodes:

    Ansi39
    Ansi39x
    Code39
    Code39x
    Code_128_A
    Code_128_B
    Code_128_C
    Code_128auto
    Code_93
    Code93x
    MSI
    PostNet
    EAN_8
    UPC_A
    RM4SCC
    UCCEAN128

    • Property is not valid for the following barcodes:

    Codabar(NW-7)
    EAN_13(JAN13)
    Code_2_of_5
    Code25intlv
    Matrix_2_of_5
    UPC_E0
    UPC_E1
    QRCode
    Code49
    DataMatrix
    Pdf417
    microPdf417
    IntelligentMail
    JapanesePostal (Checksum is added automatically irrespective of the value set in the CheckSumEnabled property.)
    EAN128FNC1 (Checksum is added automatically irrespective of the value set in the CheckSumEnabled property.)
    RSS14 (Checksum is added automatically irrespective of the value set in the CheckSumEnabled property.)
    RSS14Truncated (Checksum is added automatically irrespective of the value set in the CheckSumEnabled property.)
    RSS14Stacked (Checksum is added automatically irrespective of the value set in the CheckSumEnabled property.)
    RSS14StackedOmnidirectional (Checksum is added automatically irrespective of the value set in the CheckSumEnabled property.)
    RSSExpanded (Checksum is added automatically irrespective of the value set in the CheckSumEnabled property.)
    RSSExpandedStacked (Checksum is added automatically irrespective of the value set in the CheckSumEnabled property.)
    RSSLimited (Checksum is added automatically irrespective of the value set in the CheckSumEnabled property.)

    CheckSumEnabled has no effect if the style is EAN-13 and the result is based on the length of the string as follows:

    Under 12 digits Barcode symbol is not generated. Error message appears on the control.
    12 digits Check digit is calculated automatically (modulus 10/ weight 3). The barcode symbol is generated once the 13th digit is added.
    13 digits or above Strings with 13 digits or above are ignored and check digit is calculated automatically till the 12th digit. The barcode symbol is generated once the 13th digit is added.
    Example
    private void detail_Format(object sender, System.EventArgs eArgs)
    {
        this.barcode1.CheckSumEnabled = true;
    }
    Private Sub Detail1_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail1.Format
        Me.Barcode1.CheckSumEnabled = True
    End Sub
    See Also