使用 ZXing 生成 GS1-Databar(以前的 RSS_14)条码

问题描述 投票:0回答:0

下面的片段给出了错误

RSS_14 格式没有编码器

我已参考此link 以在 GS1-Databar 中生成条形码。我发现 ZXing.Net 不支持 GS1-Databar 中的编码。请提供生成 GS1-Databar 的自定义方法或使用 ZXing.Net 生成相同方法的步骤。

        var barcodeWriter = new BarcodeWriter
        {
            Format = BarcodeFormat.RSS_14,
            Options = new EncodingOptions
            {
                Height = 250,
                Width = 500,
                GS1Format = true
            }
        };

        var bitmap = barcodeWriter.Write("01234567891345");

        bitmap.Save(RSS_14, ImageFormat.Png);
        Console.ReadLine();
c# asp.net-core console-application zxing.net gs1-databar
© www.soinside.com 2019 - 2024. All rights reserved.