ByteScout BarCode Generator SDK - C# - DataMatrix Barcode With Binary Data - ByteScout

ByteScout BarCode Generator SDK – C# – DataMatrix Barcode With Binary Data

  • Home
  • /
  • Articles
  • /
  • ByteScout BarCode Generator SDK – C# – DataMatrix Barcode With Binary Data

datamatrix barcode with binary data in C# using ByteScout Barcode SDK

datamatrix barcode with binary data in C#

The documentation is designed to help you to implement the features on your side. Datamatrix barcode with binary data in C# can be implemented with ByteScout Barcode SDK. ByteScout Barcode SDK is the robost library (Software Development Kit) that is designed for automatic generation of high-quality barcodes for printing, electronic documents and pdf. All popular barcode types are supported from Code 39 and Code 129 to QR Code, UPC, GS1, GS-128, Datamatrix, PDF417, Maxicode and many others. Provides support for full customization of fonts, colors, output and printing sizes. Special tools are included to verify output quality and printing quality. Can add generated barcode into new or existing documents, images and PDF.

C#, code samples for C#, developers help to speed up the application development and writing a code when using ByteScout Barcode SDK. In order to implement this functionality, you should copy and paste code below into your app using code editor. Then compile and run your application. Enhanced documentation and tutorials are available along with installed ByteScout Barcode SDK if you’d like to dive deeper into the topic and the details of the API.

Free trial version of ByteScout Barcode SDK is available on our website. Get it to try other samples for C#.

Try ByteScout Barcode SDK today: Get 60 Day Free Trial or sign up for Web API

Program.cs
      
using System.Diagnostics; using System.Text; using Bytescout.BarCode; namespace DataMatrixWithBinaryData { class Program { static void Main(string[] args) { // Create Barcode component instance using (Barcode barcode = new Barcode()) { barcode.RegistrationName = "demo"; barcode.RegistrationKey = "demo"; // Set barcode type barcode.Symbology = SymbologyType.DataMatrix; // Force binary mode barcode.Options.DataMatrixCompactionMode = DataMatrixCompactionMode.Binary; // Sample byte array to use as value byte[] byteArray = new byte[] { 0, 10, 11, 12, 13, 14, 15, 0xFF }; // Set value by converting byte array to string barcode.Value = Encoding.ASCII.GetString(byteArray); // Save barcode image barcode.SaveImage("result.png"); // Open output image in default associated application Process.Start("result.png"); } } } }

Try ByteScout Barcode SDK today: 60 Day Free Trial (on-premise version) or sign up for Web API (on demand version)

VIDEO

ON-PREMISE VERSION

Get 60 Day Free Trial or Visit ByteScout Barcode SDK page

Explore ByteScout Barcode SDK documentation

WEB API

Sign Up for free Web API key

Explore Web API Documentation

Tutorials:

prev
next