Back to Devexpress

PDF417Generator.ErrorCorrectionLevel Property

corelibraries-devexpress-dot-xtraprinting-dot-barcode-dot-pdf417generator-8317d2c3.md

latest3.5 KB
Original Source

PDF417Generator.ErrorCorrectionLevel Property

Gets or sets the amount of redundancy built into the bar code’s coding, to compensate for calculation errors.

Namespace : DevExpress.XtraPrinting.BarCode

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

NuGet Package : DevExpress.Printing.Core

Declaration

csharp
[DefaultValue(ErrorCorrectionLevel.Level2)]
public ErrorCorrectionLevel ErrorCorrectionLevel { get; set; }
vb
<DefaultValue(ErrorCorrectionLevel.Level2)>
Public Property ErrorCorrectionLevel As ErrorCorrectionLevel

Property Value

TypeDefaultDescription
ErrorCorrectionLevelLevel2

An ErrorCorrectionLevel enumeration value, specifying the error correction level.

|

Available values:

NameDescription
Level0

Identifies the zero error correction level of the PDF417 bar code.

| | Level1 |

Identifies the first error correction level of the PDF417 bar code.

| | Level2 |

Identifies the second error correction level of the PDF417 bar code.

| | Level3 |

Identifies the third error correction level of the PDF417 bar code.

| | Level4 |

Identifies the fourth error correction level of the PDF417 bar code.

| | Level5 |

Identifies the fifth error correction level of the PDF417 bar code.

| | Level6 |

Identifies the sixth error correction level of the PDF417 bar code.

| | Level7 |

Identifies the seventh error correction level of the PDF417 bar code.

| | Level8 |

Identifies the eighth error correction level of the PDF417 bar code.

|

Remarks

The error correction system used in the bar codes of the PDF417 type is based on “Reed Solomon” codes.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ErrorCorrectionLevel property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

reporting-add-a-bar-code-to-a-report/CS/Form1.cs#L448

csharp
((PDF417Generator)barCode.Symbology).CompactionMode = PDF417CompactionMode.Text;
((PDF417Generator)barCode.Symbology).ErrorCorrectionLevel = ErrorCorrectionLevel.Level2;
((PDF417Generator)barCode.Symbology).Rows = 9;

See Also

PDF417

PDF417Generator Class

PDF417Generator Members

DevExpress.XtraPrinting.BarCode Namespace