Skip to main content
All docs
V23.2

SSCCGenerator Class

A class used to generate an SSCC bar code.

Namespace: DevExpress.XtraPrinting.BarCode

Assembly: DevExpress.Printing.v23.2.Core.dll

NuGet Package: DevExpress.Printing.Core

Declaration

public class SSCCGenerator :
    EAN128Generator

Remarks

For information on the SSCC bar code type, review the following help topic: SSCC Bar Code.

Use the XRBarCode.Text property to specify a string composed of 17 digits in the following order:

Extension Digit
1 digit
GS1 Company Prefix
7 digits
Serial Reference
9 digits

The application identifier (AI) and Check Digit are generated automatically.

Example

The following code creates the GS1-128 - EAN-128 (UCC) bar code and specifies its properties:

View Example: How to add a bar code to a report

using System;
using System.Collections.Generic;
using System.Drawing.Printing;
using System.Windows.Forms;
using DevExpress.XtraPrinting.BarCode;
using DevExpress.XtraReports.UI;
// ...
public XRBarCode CreateSSCCBarCode(string BarCodeText) {
    // Create a barcode control.
    XRBarCode barCode = new XRBarCode();

    // Set the barcode type to SSCC.
    barCode.Symbology = new SSCCGenerator();

    // Adjust the barcode's main properties.
    barCode.Text = BarCodeText;
    barCode.Width = 400;
    barCode.Height = 100;
    barCode.AutoModule = true;

    return barCode;
}

Inheritance

Object
DevExpress.Printing.Utils.DocumentStoring.StorableObjectBase
See Also