.NET RDLC Reports Barcode Developer Guide >
.NET RDLC Reports Barcode EAN-13 Developer Guide
.NET RDLC Reports EAN-13 Barcode Property Settings
1. EAN-13 Barcode Property Settings
-
Set the Type property to BarcodeType.EAN13 or BarcodeType.EAN13_2 or BarcodeType.EAN13_5
-
Set the Data property with the value to encode. Type is string.
User should only provide 12 digits, and DO NOT include last digit checksum character.
- Valid Data Scope:
- 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
- Valid Data Format:
12 digits. There are totally 13 digits in EAN-13 barcode, first 13 digits are barcode value, and last digit is the checksum digit, which is generated by barcode library automatically.
- Sample: barcode.Data = "123456789012"
-
Set the SData property with the supplement value to encode. Type is string.
Provide 2 digits for barcode type EAN13_2, and provide 5 digits for type EAN13_5.
Sample for BarcodeType.EAN13_2: barcode.SData = "12".
Sample for BarcodeType.EAN13_5: barcode.SData = "12345".
Set the SSeparation property, the space between main barcode image and the supplement barcode image.
Type is float. Default is 12.
-
AddCheckSum property is not applied here. Barcode Library will always add a check character in the last digit (modulo 10).
-
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.
|
|