.NET RDLC Reports Barcode Developer Guide >
.NET RDLC Reports Barcode GS1-128/UCC/EAN-128 Developer Guide
.NET RDLC Reports GS1-128/UCC/EAN-128 Property Settings
1. GS1-128/UCC/EAN-128 Barcode Property Settings
-
Set the Type property to BarcodeType.EAN128
-
Set the Data property with the value to encode.
Type is string.
- Valid Data Scope:
- all 128 characters of ASCII
- Sample: "AI(21)d12345777AI(21)12345678"
About AI (Application Identifiers)
In Barcode Library, you can use AI(dddd) format to encode AI code.
For example, to encode AI code 21 with value d12345777,
and AI code 21 with value 12345678.
barcode.Data = "AI(21)d12345777AI(21)12345678".
About ASCII Data Encoding
In Barcode Library, you can use CH(ddd) format to encode any ASCII data (from ASCII value 0 to 127).
For example CH(100) = d.
So for the above sample EAN-128 data, you can also
set Data property = "AI(21)CH(100)12345777AI(21)12345678".
Or, you may 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.
-
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 ResizeImage property to "true" and our component will resize the barcode image if manual setting is invalid.
Type is bool. Default is false.
-
Set the Resolution property (Value is expressed in DPI - Dots per inch).
Type is int. Default is 96 dpi.
-
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.
|
|