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)
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"); } } } }
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
Get Your API Key
Explore Web API Docs
Explore Web API Samples
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
Get Your API Key
Explore Web API Docs
Explore Web API Samples
also available as: