.NET Core C# GS1 DataBar Generator Library SDK

How to generate, print .NET Core GS1 DataBar (RSS) barcode images in C# Web & WinForms applications

"This .NET suite helps my team a lot, a bunch of time being saved. OnBarcode support is awesome, and we couldn't ask more than this."
- Bill Twain, Canada

Using GS1 DataBar C#.NET Barcode Control to generate GS1 DataBar (RSS) family barcode images in .NET Applications


Generate and Print GS1 DataBar (RSS) Barcodes Using .NET Core C# Class
Top
Please use the following C# sample code to generate a GS1 DataBar barcode image for Visual Studio .NET Framework programs:
   using System;
using System.Collections.Generic;
using System.Text;
using OnBarcode.Barcode;
using System.Drawing.Imaging;
using System.Drawing;

Linear GS1_DataBar = new Linear();
GS1_DataBar.Type = BarcodeType.RSS14;

/*
GS1 DataBar (RSS family) valid data character set:

1) GS1 DataBar-14 versions and GS1 DataBar Limited: Digits 0 through 9 (with the
restriction of GS1 DataBar Limited to 0 or 1 in the first digit)

2) GS1 DataBar Expanded: a subset of Table 1 of the International Standard ISO/IEC 646,
consisting of the uppercase and lowercase letters, digits, spaces, and 20 selected
punctuation characters in addition to the Function 1 Character (FNC1)
*/
GS1_DataBar.Data = "01222228888800";

// GS1 DataBar (RSS family) Image Size Related Settings
GS1_DataBar.UOM = UnitOfMeasure.PIXEL;
GS1_DataBar.X = 2;
GS1_DataBar.Y = 78;
GS1_DataBar.BarcodeHeight = 103;
GS1_DataBar.BarcodeWidth = 202;

// GS1 DataBar (RSS family) Text Settings
GS1_DataBar.ShowText = true;
GS1_DataBar.TextFont = new Font("Arial", 9f, FontStyle.Regular);
GS1_DataBar.TextMargin = 6;

// Other Related Settings
GS1_DataBar.Rotate = Rotate.Rotate0;
GS1_DataBar.Resolution = 96;

// Generate GS1 DataBar Image Format Setting
GS1_DataBar.Format = System.Drawing.Imaging.ImageFormat.Png;

GS1_DataBar.drawBarcode("C://gs1_databar.png");

// Print GS1 DataBar to C# Bitmap object
Bitmap GS1_DataBarBitmap = GS1_DataBar.drawBarcode();
More C# Barcode Generation Tutorials for Each Barcode
Top

Barcode Control for C#.NET - Bar Code Type Generation

OnBarcode is a market-leading provider of barcode imaging generator, reader controls and components for ASP.NET, Windows Forms, WPF, as well Java, Android, iOS (iPhone, iPad) across all major enterprise development platforms. We provides comprehensive tutorials and how-tos for various linear, 2d barcode information, such as C# in ASP.NET, C# .NET, C# Barcode Encoding, C# Barcode Image, VB.NET in ASP.NET, VB.NET Winforms, VB.NET Barcode Encoding. OnBarcode barcode products are supported by RasterEdge ASP.NET Document Viewer, which supports ASP.NET PDF Viewer, ASP.NET MVC Document Viewer, ASP.NET PDF Editor, MVC PDF Viewer. And provide high quality C# Convert PDF to Tiff, C# Convert PDF to Word, C# Convert PDF to HTML, C# Convert PDF to Jpeg images, and their easy and simple documents, like C# PDF SDK, C# extract text from PDF, C# Compress PDF, Print PDF in C# and C# extract image from PDF.
Terms of Use | Privacy Policy
Copyright © OnBarcode.com . All rights reserved.