1D Barcodes with Optional Exception Message in Case of Wrong Code Text

[ ]

If the code text is incorrect and the value for the ThrowExceptionWhenCodeTextIncorrect property is set to true, an exception is thrown. Otherwise, the code text is corrected to match the barcode’s specification, with the following exceptions:

  • An exception is always thrown for the Databar symbology if the code text is incorrect.
  • An exception is never thrown for AustraliaPost, SingapurePost, Code39Extended, Code93Extended, Code16K, Code128 symbologies, even if the code text is incorrect.

The code below shows how to use the method.

Figure: Results