Here you may find thousands pre-made source code pieces for easy implementation in your own programming C# projects. ByteScout Barcode SDK was made to help with datamatrix barcode in C#. 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.
You will save a lot of time on writing and testing code as you may just take the code below and use it in your application. This C# sample code should be copied and pasted into your application’s code editor. Then just compile and run it to see how it works. Use of ByteScout Barcode SDK in C# is also explained in the documentation included along with the product.
Trial version can be obtained from our website for free. It includes this and other source code samples for C#.
  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;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;
using Bytescout.BarCode;
namespace Sample
{
    class Program
    {
        static void Main(string[] args)
        {
            // Create new barcode
            Barcode barcode = new Barcode();
            // Set symbology
            barcode.Symbology = SymbologyType.DataMatrix;
            
            // Set value            
            barcode.Value = "this is a test string";
            // Save barcode to image
            barcode.SaveImage("result.png");
            // Show image in default image viewer
            Process.Start("result.png");
        }
    }
}
    
    60 Day Free Trial or Visit ByteScout Barcode SDK Home Page
    
    Explore ByteScout Barcode SDK Documentation
    
    Explore Samples
    
    Sign Up for ByteScout Barcode SDK Online Training
    Get Your API Key
    
    Explore Web API Docs
    
    Explore Web API Samples    
60 Day Free Trial or Visit ByteScout Barcode SDK Home Page
Explore ByteScout Barcode SDK Documentation
Explore Samples
Sign Up for ByteScout Barcode SDK Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
also available as: