ActiveReports 16 .NET Edition
ActiveReports 16 User Guide / How To / Section Report How To / Report Controls / GS1DataMatrix Barcode
In This Topic
    GS1DataMatrix Barcode
    In This Topic

    You can set GS and parameter length variable of the GS1DataMatrix barcode in the Detail Format event.

    1. From the Toolbox, drag and drop the Barcode report control onto the design surface.
    2. On the design surface, double-click the detail section of the report to create an event handling method for the Detail Format event.
    3. Add the following code to the handler to set the GS and length variable of the Barcode control.
      Note: A single line feed character (“\n” for C#, “vbLf” for VB) is treated as a GS character.
      Visual Basic.NET code. Paste INSIDE the Detail Format event
      Copy Code
      Me.Barcode1.Text = "0109501101020917" + "17190508" + "10ABCD1234" + vbLf + "2110"
      
      C# code. Paste INSIDE the Detail Format event
      Copy Code
      this.Barcode1.Text = "0109501101020917" + "17190508" + "10ABCD1234" + "\n" + "2110";                                        
      
    4. Preview the report.
    See Also