Java Barcode Generator, .NET Barcode Generator for C#, ASP.NET, VB.NET
HOME BARCODE FOR .NET RDLC PURCHASE


.NET RDLC Reports Barcode Developer Guide > .NET RDLC Reports Barcode Code-128 Developer Guide

.NET RDLC Reports Code-128 Barcode Property Settings



1. Code-128 Barcode Property Settings
  • Set the Type property to BarcodeType.CODE128, BarcodeType.CODE128A, or BarcodeType.CODE128B, or BarcodeType.CODE128C.
    • BarcodeType.CODE128 - default (auto):Barcode Library will automatically switch between code sets to encode the ASCII values.
    • BarcodeType.CODE128A - A: Barcode Library will encode the Char Set A which only supports ASCII values from 0 to 95
    • BarcodeType.CODE128B - B: Barcode Library will encode the Char Set B which only supports ASCII values from 32 to 127
    • BarcodeType.CODE128C - C: Barcode Library will encode the Char Set C which only supports pairs of digits
  • Set the Data property with the value to encode.
    Type is string.
    • Valid Data Scope for Code 128 Auto (BarcodeType.CODE128):
      • all 128 characters of ASCII (ASCII values from 0 to 127)
    • Valid Data Scope for Code 128 Set A (BarcodeType.CODE128A):
      • supports ASCII values from 0 to 95
    • Valid Data Scope for Code 128 Set B (BarcodeType.CODE128B):
      • supports ASCII values from 32 to 127
    • Valid Data Scope for Code 128 Set C (BarcodeType.CODE128C):
      • supports pairs of digits
    • Sample: "BLSample"


    Set the ProcessTilde to true, if you want use the tilde character "~" to specify special characters in Code 128 input data. Default is false.
    • ~1: is used to represent the FNC1 code.
    • ~NNN: is used to represent the ASCII character with the value of NNN.
    • Valid values are: "True", or "False".
  • AddCheckSum property is not applied here. Barcode Library will always add a check character between encoded data and stop character (modulo 103).
  • Barcode Size Settings:
    • Set property UOM (Unit of Measure) for properties BarWidth, BarHeight, LeftMargin and TopMargin.
      Valid values are UnitOfMeasure.Pixel, UnitOfMeasure.CM, UnitOfMeasure.Inch.
      Default is UnitOfMeasure.Pixel.
    • Set the ImageWidth and ImageHeight properties.
      Both types are float.
      BarWidth default is 0 pixel.
      BarHeight default is 0 pixel.
    • Set the BarWidth (for bar cell width) and BarHeight (for bar cell height) properties.
      Both types are float.
      BarWidth default is 1 pixel.
      BarHeight default is 80 pixel.
    • Set the LeftMargin, RightMargin, TopMargin and BottomMargin properties.
      Types are all float. Default are 10.
    • Set the Resolution property (Value is expressed in DPI - Dots per inch).
      Type is int. Default is 96 dpi.
    • Set the ResizeImage property to "true" and our component will resize the barcode image if manual setting is invalid.
      Type is bool. Default is false.
  • Setting up text style in barcode image:
    • Set the ShowText properties. If ShowText is True, barcode data will be displayed with the barcode.
      Type is bool. Default is True.
      Valid values are: "True", and "False".
    • Set the TextFont property. The font used to display text in barcode image.
      Type is System.Drawing.Font. Default is new Font("Arial", 9f, FontStyle.Regular).
  • Set Color Related properties.
    • Set the BackgroundColor property. Barcode background color can be changed.
      Type is System.Drawing.Color. Default is BackgroundColor = Color.White.
    • Set the BarColor property. Barcode bars color can be changed.
      Type is System.Drawing.Color. Default is BarColor = Color.Black.
    • Set the TextFontColor property. Barcode human-readable data text color can be changed.
      Type is System.Drawing.Color. Default is TextFontColor = Color.Black.
  • Set the ImageFormat property for barcode image type.
    • Type is System.Drawing.Imaging.ImageFormat.
      Default value is ImageFormat.Png.
      Valid values are: Gif, Jpeg, Png, Bmp, Tiff.
  • Set Rotate property, if you want to rotate barcode image. Valid values are as below.
    • RotateOrientation.BottomFacingDown
    • RotateOrientation.BottomFacingLeft
    • RotateOrientation.BottomFacingUp
    • RotateOrientation.BottomFacingRight
    • Default Value is RotateOrientation.BottomFacingDown


2. All Barcode Types











   Copyright BarcodeLib.com. All rights reserved.