Example #1
0
        public virtual string Interleaved2Of5BarCode(FieldOrientation fieldOrientation,
                                                     int barCodeHeight,
                                                     [NotNull] string content,
                                                     PrintInterpretationLine printInterpretationLine = PrintInterpretationLine.Yes,
                                                     PrintInterpretationLineAboveCode printInterpretationLineAboveCode = PrintInterpretationLineAboveCode.No,
                                                     CalculateAndPrintMod10CheckDigit calculateAndPrintMod10CheckDigit = CalculateAndPrintMod10CheckDigit.No)
        {
            if (content == null)
            {
                throw new ArgumentNullException(nameof(content));
            }

            return($"^B2{(char) fieldOrientation},{barCodeHeight},{(char) printInterpretationLine},{(char) printInterpretationLineAboveCode},{(char) calculateAndPrintMod10CheckDigit}^FD{content}^FS");
        }
Example #2
0
        public virtual string Code39BarCode(FieldOrientation fieldOrientation,
                                            int barCodeHeight,
                                            [NotNull] string content,
                                            PrintInterpretationLine printInterpretationLine = PrintInterpretationLine.Yes,
                                            PrintInterpretationLineAboveCode printInterpretationLineAboveCode = PrintInterpretationLineAboveCode.No,
                                            Mod43Check mod43Check = Mod43Check.No)
        {
            if (content == null)
            {
                throw new ArgumentNullException(nameof(content));
            }

            return($"^B3{(char) fieldOrientation},{(char) mod43Check},{barCodeHeight},{(char) printInterpretationLine},{(char) printInterpretationLineAboveCode}^FD{content}^FS");
        }
Example #3
0
        public virtual string Code128BarCode(FieldOrientation fieldOrientation,
                                             int barCodeHeight,
                                             [NotNull] string content,
                                             PrintInterpretationLine printInterpretationLine = PrintInterpretationLine.Yes,
                                             PrintInterpretationLineAboveCode printInterpretationLineAboveCode = PrintInterpretationLineAboveCode.No,
                                             UccCheckDigit uccCheckDigit = UccCheckDigit.No,
                                             Mode mode = Mode.NoSelectedMode)
        {
            if (content == null)
            {
                throw new ArgumentNullException(nameof(content));
            }

            return($"^BC{(char) fieldOrientation},{barCodeHeight},{(char) printInterpretationLine},{(char) printInterpretationLineAboveCode},{(char) uccCheckDigit},{(char) mode}^FD{content}^FS");
        }