How to Generate GS1 DataBar in .NET Library
GS1 DataBar is also known as Reduced Space Symbology (RSS), is a barcode family which used to encode a GTIN-12 or GTIN-13 in a 14-digit data structure. It is a family of linear barcodes with various versions for different application requirements like Point-of-Sale systems.
GS1 DataBar for .NET Ultimate is a robust .NET Control library package which enables developers to generate GS1 DataBar linear barcodes in .NET applications using Visual C# or VB.NET. Free trial package and optional C#, VB codes are provided.
GS1 DataBar Generating SDK offers advanced barcode generation and printing capabilities for developers to create barcode with great ease. Customization options include adjustment of hunman-readble text and automatically computing checksum enabled or disabled.
GS1 DataBar for .NET Ultimate Features
Encodable Characters | Support to encode: Numeric data: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
|
GS1 DataBar Expanded Encodable Characters | Uppercase and lowercase letters, digits, spaces, and 20 selected punctuation characters in addition to the Function 1 Character (FNC 1) |
Flexible Size Option | Offers flexible options to adjust GS1 DataBar barcode X, Y dimension, barcode width & height, wide narrow ration and quiet margin etc. |
Various Image Formats | Save and print GS1 DataBar barcodes into multiple image files, like Png, Jpeg/Jpg, Gif, Tiff, Bmp, as well as .NET graphic objects |
Human-Readable Text | Fully control human-readable text under GS1 DataBar symbols with customize font style |
Programming Language | Easy to be used in C#, VB.NET Managed C++ and Borland Delphi for .NET and other IDEs supported by .NET Framework |
GS1 DataBar for .NET Ultimate Requirements
Windows OS - Microsoft Windows 7 - Windows Server 2008 - Windows Vista - Windows Server 2003 - Windows XP
| Development Environments - .NET 2.0/3.0/4.0 - C#, Visual Basic, Managed C++ and Borland Delphi.NET - Visual Studio 2005/2008/2010 - .NET Windows Forms Application - .NET Class and Console Applications - ASP.NET Web Forms - .NET SSRS and Crystal Report
|
Install GS1 DataBar Generator for .NET Ultimate
- Add reference: Add "BusinessRefinery.Barcode.Web.dll" or "BusinessRefinery.Barcode.Win.dll" to your project reference;
- Add to toolbox: To add Barcode Control to your .NET Winforms or ASP.NET Web Forms toolbox.
How to Drag & Drop Barcode Control into ASP.NET projects?
- Install ASP.NET Barcode Control;
- Add ASP.NET Barcode Control onto your .NET Visual Studio Toolbox;
- Copy "linear.aspx" and "linear.aspx.cs" to the folder where your aspx pages are generating barcodes;
- Drag and drop the WebLinearBarcode control into the Forms;
- Run the website and you will see a barcode image generated.
How to Drag & Drop Barcode Control into .NET Winforms projects?
- Install .NET Winforms Barcode Control;
- Add .NET Winforms Barcode Control onto your .NET Visual Studio Toolbox;
- Drag and drop the WinLinearBarcode control into the Forms;
- Run the website and you will see a barcode image generated.
How to Generate GS1 DataBar in .NET with C#, VB.NET Class?
Copy those following code to your .NET project:
using BusinessRefinery.Barcode;
Linear barcode = new Linear();
barcode.Symbology = Symbology.RSS14;
barcode.Code = "00254986210365 ";
barcode.Resolution = 104;
barcode.Rotate = Rotate.Rotate180;
barcode.Format = ImageFormat.Gif;
barcode.drawBarcode2ImageFile("c:/rss14-csharp.gif");
Dim barcode As BusinessRefinery.Barcode.Linear =
New BusinessRefinery.Barcode.Linear()
barcode.Symbology = BusinessRefinery.Barcode.Symbology.RSS14
barcode.Code = "00254986210365 "
barcode.Resolution = 104
barcode.Rotate = BusinessRefinery.Barcode.Rotate.Rotate270
barcode.Format = System.Drawing.Imaging.ImageFormat.Gif
barcode.drawBarcode2ImageFile("c:/rss14-vb-net.gif")
How to Create Your Own GS1 DataBar in IIS?
- Download BizCode Generator for .NET Ultimate and unzip;
- Copy the whole barcode fold and contents into IIS and create a new virtual directory called "br_barcode";
- Restart IIS, navigate to http://localhost/br_barcode/linear.aspx?code=00254986210365 &symbology=46;
- Add an image tag
into the web page to create Code 39 barcode image in html or aspx pages, e.g. <img src="http://localhost/br_barcode/linear.aspx?code=00254986210365 &symbology=46"/>.
How to Draw GS1 DataBar Barcodes to Image Files (GIF, JPEG, BMP, PNG, & TIFF)?
Copy those following code to your .NET project:
using BusinessRefinery.Barcode;
Linear barcode = new Linear();
barcode.Symbology = Symbology.RSS14;
barcode.Code = "00254986210365 ";
barcode.Format = ImageFormat.Gif;
barcode.drawBarcode2ImageFile("c:/ rss14-csharp.gif");
Dim barcode As BusinessRefinery.Barcode.Linear =
New BusinessRefinery.Barcode.Linear()
barcode.Symbology = BusinessRefinery.Barcode.Symbology.RSS14
barcode.Code = "00254986210365 "
barcode.Format = System.Drawing.Imaging.ImageFormat.Gif
barcode.drawBarcode2ImageFile("c:/ rss14-vb-net.gif")
How to draw & print GS1 DataBar barcodes to .NET objects like Graphics, Stream, Bitmap?
Copy those following code to your .NET project:
public void drawBarcode2ImageFile(string filename);
public void drawBarcode2Stream(Stream fileStream);
public byte[] drawBarcodeAsBytes();
public Bitmap drawBarcodeOnBitmap();
public void drawBarcodeOnGraphics(Graphics graphics);
Public Sub drawBarcode2Stream(ByVal fileStream As System.IO.Stream)
Public Sub drawBarcodeOnGraphics(ByVal graphics As
System.Drawing.Graphics)
Public Function drawBarcodeAsBytes() As Byte()
Public Function drawBarcodeOnBitmap() As System.Drawing.Bitmap