ByteScout Premium Suite - C# - Generate datamatrix barcode with binary data with barcode sdk - ByteScout
Announcement
Our ByteScout SDK products are sunsetting as we focus on expanding new solutions.
Learn More Open modal
Close modal
Announcement Important Update
ByteScout SDK Sunsetting Notice
Our ByteScout SDK products are sunsetting as we focus on our new & improved solutions. Thank you for being part of our journey, and we look forward to supporting you in this next chapter!

ByteScout Premium Suite – C# – Generate datamatrix barcode with binary data with barcode sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout Premium Suite – C# – Generate datamatrix barcode with binary data with barcode sdk

How to generate datamatrix barcode with binary data with barcode sdk in C# with ByteScout Premium Suite

Step-by-step tutorial on how to generate datamatrix barcode with binary data with barcode sdk in C#

The sample shows instructions and algorithm of how to generate datamatrix barcode with binary data with barcode sdk and how to make it run in your C# application. ByteScout Premium Suite is the bundle that includes twelve SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording and you can use it to generate datamatrix barcode with binary data with barcode sdk with C#.

The SDK samples given below describe how to quickly make your application do generate datamatrix barcode with binary data with barcode sdk in C# with the help of ByteScout Premium Suite. Just copy and paste the code into your C# application’s code and follow the instructions. This basic programming language sample code for C# will do the whole work for you to generate datamatrix barcode with binary data with barcode sdk.

Trial version of ByteScout Premium Suite is available for free. Source code samples are included to help you with your C# app.

On-demand (REST Web API) version:
 Web API (on-demand version)

On-premise offline SDK for Windows:
 60 Day Free Trial (on-premise)

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"); } } } }

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Premium Suite Home Page

Explore ByteScout Premium Suite Documentation

Explore Samples

Sign Up for ByteScout Premium Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

VIDEO

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Premium Suite Home Page

Explore ByteScout Premium Suite Documentation

Explore Samples

Sign Up for ByteScout Premium Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next