This project has moved. For the latest updates, please go here.
2

Resolved

Encoder for Code93 is missing

description

This code throws exception

Code
var barcodeWriter = new BarcodeWriter
        {
            Format = BarcodeFormat.CODE_93,
            Options = new EncodingOptions
            {
                Height = height,
                Width = width
            }
        };

        Bitmap bitmap = barcodeWriter.Write(code);
Exception: No encoder available for format CODE_93
System.ArgumentException : No encoder available for format CODE_93
at ZXing.MultiFormatWriter.encode(String contents, BarcodeFormat format, Int32 width, Int32 height, IDictionary2 hints) in C:\ZXing.Net.0.14.0.0\Source\lib\MultiFormatWriter.cs: line 77
at ZXing.BarcodeWriterGeneric
1.Encode(String contents) in C:\ZXing.Net.0.14.0.0\Source\lib\BarcodeWriterGeneric.cs: line 72
at ZXing.BarcodeWriterGeneric`1.Write(String contents) in C:\ZXing.Net.0.14.0.0\Source\lib\BarcodeWriterGeneric.cs: line 86
at FinaDb.Reports.BarCodeBuilder.GenerateBarCodeImage(String code, Int32 width, Int32 height) in BarCodeBuilder.cs: line 24
at FinaDb.Tests.Services.Payment.BarCodeBuilderTest.Code_contains_letters() in BarCodeBuilderTest.cs: line 24

comments

DIGITHAI wrote Nov 25, 2016 at 1:41 AM

I am facing the same issue, now in 2016. No encoder for Code
_93 has been supported yet. Would be possible to push an update with this proposed fix?
That would be awesome.
Thanks.

wrote Feb 25 at 11:43 AM