IDAutomation.com, Inc., Computers Hardware, Software & Services, Tampa, FL Contact IDAutomationView your cart in the IDAutomation Store  
Loading

Home > Font Encoders > .NET Barcode Font Encoder Assembly & DLL

.NET Barcode Font Encoder Assembly & DLL

The IDAutomation .NET Font Encoder Assembly & DLL is a font encoder that formats text for IDAutomation barcode fonts in Microsoft .NET Framework. This encoder supports traditional linear barcode fonts, postal barcode fonts and the IDAutomation Universal Barcode Font, and is free to use with the purchase of a Developer's License or above of any IDAutomation barcode font package.

Download .NET Assembly Files Now

The demo font encoder will have an intermittent pop up message. After the purchase of the Developer License of any IDAutomation Barcode Font Package, the licensed version of the IDAutomation.NETAssembly.dll will need to be replaced.

This .NET barcode font encoder includes an ASP.NET sample application, which is also used in the Online Barcode Font Encoder Tool. To use this application in Visual Studio, it must be extracted into the fontencoder folder under Inetpub\wwwroot.

This tool is excellent for creating barcodes from fonts in .NET applications, although there is a variety of other products available for barcode generation in .NET environments such as the ASP.NET Barcode Web Component, the Barcode Server for IIS or .NET Forms Barcode Controls.

Note: Use of this .NET Assembly, requires a Developer License or above. This font encoder is supplied with Purchase of Developer's License or above of any Barcode Font Package.

Installation and Tutorial

These steps outline the process for setting up the .NET Barcode Font Encoder Assembly & DLL Tool in Visual Studio .NET. The example uses two textboxes: txtDataToEncode to input the data and txtEncodedData to display the encoded data. A command button executes the font encoder and places the txtDataToEncode encoded data into the txtEncodedData textbox. The example uses the IDAutomation.NETAssembly.dll to encode data for a Code 128 barcode in C#.

  1. Copy the IDAutomation.NetAssembly.dll to the project directory. This assembly encodes data for 1D (Linear) barcodes and the Universal Barcode Font.

    Intelligent Mail (IMb) uses IDAutomation.IntelligentMail.dll.
    DataBar uses IDAutomation.DataBarFontEncoder.dll.
  2. Create a reference to the assembly. In Visual Studio .NET, this is accomplished by accessing the Solution Explorer. If Solution Explorer is not visible, select View - Solution Explorer.
  3. Right-click References in Solution Explorer and choose Add Reference.

  4. On the Add Reference dialog, click Browse.
  5. Select IDAutomation.NetAssembly.dll and click Open.
  6. Click OK on the Add Reference dialog.
  7. In the project, create an object of the class:
    IDAutomation.NetAssembly.FontEncoder FontEncoder = new IDAutomation.NetAssembly.FontEncoder();
  8. Format the data to the font:
    txtEncodedText.Text = FontEncoder.Code128(txtDataToEncode.Text);
  9. Set the the encoded data to the barcode font:
    txtEncodedText.Font = new Font("IDAutomationC128L", 12, FontStyle.Regular);
    //NOTE: The Demo font is named IDAutomationSC128L.
  10. After the text is formatted to the font, print or display the text with the appropriate barcode font selected.
1D Barcode Examples using IDAutomation.NetAssembly.dll

C# Example:

IDAutomation.NetAssembly.FontEncoder FontEncoder = new IDAutomation.NetAssembly.FontEncoder();
txtEncodedText.Text = FontEncoder.Code128(txtDataToEncode.Text);
txtEncodedText.Font = new Font("IDAutomationC128L", 12, FontStyle.Regular); 
//Demo font is named "IDAutomationSC128L"

VB.NET Example:

Dim FontEncoder As New IDAutomation.NetAssembly.FontEncoder
txtEncodedText.Text = FontEncoder.Code128(txtDataToEncode.Text)
txtEncodedText.Font = new Font("IDAutomationC128L", 12, FontStyle.Regular) 
'Demo font is named "IDAutomationSC128L"
Universal Barcode Example using IDAutomation.NetAssembly.dll

C# Example:

IDAutomation.NetAssembly.UniversalFontEncoder UniversalFontEncoder = new IDAutomation.NetAssembly.UniversalFontEncoder();
txtEncodedText.Text = UniversalFontEncoder.IDAutomation_Uni_C128(txtDataToEncode.Text, false);
txtEncodedText.Font = new Font("IDAutomation Uni L", 12, FontStyle.Regular); 
//Demo font is named "IDAutomationS Uni L"

VB.NET Example:

Dim UniversalFontEncoder As New IDAutomation.NetAssembly.UniversalFontEncoder
txtEncodedText.Text = UniversalFontEncoder.IDAutomation_Uni_C128(txtDataToEncode.Text)
txtEncodedText.Font = new Font("IDAutomation Uni L", 12, FontStyle.Regular) 
'Demo font is named "IDAutomationS Uni L"
Intelligent Mail Example using IDAutomation.IntelligentMail.dll

C# Example:

IDAutomation.IntelligentMail.IntelligentMail IntelligentMail = new IDAutomation.IntelligentMail.IntelligentMail();
txtEncodedText.Text = IntelligentMail.FontEncode(txtDataToEncode.Text);
txtEncodedText.Font = new Font("IDAutomationIMB", 12, FontStyle.Regular); 
//Demo font is named "IDAutomationSIMB"

VB.NET Example:

Dim IntelligentMail As New IDAutomation.IntelligentMail.IntelligentMail
txtEncodedText.Text = IntelligentMail.FontEncode(txtDataToEncode.Text)
txtEncodedText.Font = new Font("IDAutomationIMB", 12, FontStyle.Regular) 
'Demo font is named "IDAutomationSIMB"
GS1 DataBar Barcode Example using IDAutomation.DataBarFontEncoder.dll

C# Example:

IDAutomation.DataBar.DataBar Databar = new IDAutomation.DataBar.DataBar();
txtEncodedText.Text = Databar.IDAutomation_DataBar_DataBarStackedOmniDirectional(txtDataToEncode.Text);
txtEncodedText.Font = new Font("IDAutomation DataBar 34", 12, FontStyle.Regular); 
//Demo font is named "IDAutomation DataBar 34 DEMO"

VB.NET Example:

Dim DataBar As New IDAutomation.DataBar.DataBar
txtEncodedText.Text = DataBar.IDAutomation_DataBar_DataBarStackedOmniDirectional(txtDataToEncode.Text)
txtEncodedText.Font = new Font("IDAutomation DataBar 34", 12, FontStyle.Regular)
'Demo font is named "IDAutomation DataBar 34 DEMO"

.NET Font Assembly & DLL Methods and Properties

The methods listed below are available in the IDAutomation.NetAssembly.dll file unless otherwise indicated, and are valid only when used with the font listed in the Font to Use column. All parameters are optional except DataToEncode.

Methods beginning with IDAutomation_Uni_ may only be used with the IDAutomation Universal Barcode Font Advantage Package.

Methods for Linear Barcode Fonts
Barcode Type Methods and Notes
(View Method Descriptions for more information)
Font to Use
Code 11 Code11 (DataToEncode) IDAutomationC11
Code 128 (Auto Mode) Code128 (DataToEncode, C128 ReturnType, ApplyTilde)
Human Readable text may be created in the font with C128 ReturnType = 6.
Example: Code128("123456789012", 6, 1)
IDAutomationC128
Code 128 (Manual Mode) Consider using Auto Mode for most situations.
Code128a (DataToEncode, C128 ReturnType)
Code128b (DataToEncode, C128 ReturnType))
Code128c (DataToEncode, C128 ReturnType))
IDAutomationC128
Code 39 Code39 (DataToEncode)
Code39Mod43 (DataToEncode, ReturnType)
IDAutomationC39
Code 93 Code93 (DataToEncode) IDAutomationC93
Codabar Codabar (DataToEncode) IDAutomationCB
EAN-13 EAN13 (DataToEncode) IDAutomationUPCEAN
EAN-8 EAN8 (DataToEncode) IDAutomationUPCEAN
GS1-128 Code128 (DataToEncode, C128 ReturnType, ApplyTilde)
GS1-128 is enabled in Code 128 Auto by setting ApplyTilde to True. Human Readable AIs may be created by setting the C128 ReturnType to 6.
Example: Code128("(12)3456789012", 6, 1)
IDAutomationC128
Interleaved 2 of 5 I2of5 (DataToEncode)
I2of5Mod10 (DataToEncode, ReturnType))
IDAutomationI25
MSI Plessey MSI (DataToEncode, ReturnType) IDAutomationMSI
RM4SCC RM4SCC (DataToEncode) IDAutomationRM
UPC-A UPCa (DataToEncode) IDAutomationUPCEAN
UPC-E UPCe (DataToEncode) IDAutomationUPCEAN
USPS IntelligentMail FontEncode (DataToEncode)
This method is provided in the idautomation.intelligentmail.dll
Namespace: IDAutomation.IntelligentMail; Constructor: IntelligentMail(). Code example:
Dim USPSBarcode as IDAutomation.IntelligentMail.IntelligentMail
ReturnString = USPSBarcode.FontEncode (DataToEncode)
IDAutomationPOSTNET
or IDAutomationIMB
or IDAutomation_Uni
USPS Postnet Postnet (DataToEncode, ReturnType) IDAutomationPOSTNET
Not Applicable MOD10 (DataToEncode) Not Applicable
Not Applicable SpliceText (DataToEncode, SpacingNumber, ApplyTilde) Not Applicable
Methods for the Universal Barcode Font
The methods listed below are preceded with IDAutomation_Uni_ and are only to be used with the IDAutomation Universal Barcode Font Advantage™. Namespace: IDAutomation.NetAssembly; Constructor: UniversalFontEncoder
Barcode Type Methods and Notes
(View Method Descriptions for more information)
Font to Use
Code 128 C128 (DataToEncode, ApplyTilde)
NOTE: Code128() is the recommended method to use. Code128() is also used to create GS1-128.
C128A (DataToEncode)
C128B (DataToEncode)
C128C (DataToEncode)
IDAutomation_Uni
Not Applicable C128HR (DataToEncode, ApplyTilde)
This method returns text for Code 128 barcodes, such as with GS1-128.
Text Font
Code 39 C39 (DataToEncode, N_Dimension, IncludeCheckDigit) IDAutomation_Uni
Codabar Codabar (DataToEncode, N_Dimension, StartChar, StopChar) IDAutomation_Uni
Interleaved 2 of 5 I2of5 (DataToEncode, N_Dimension, IncludeCheckDigit) IDAutomation_Uni
MS Plessey MSI (DataToEncode, N_Dimension, IncludeCheckDigit) IDAutomation_Uni
USPS IntelligentMail FontEncode (DataToEncode)
This method is provided in the idautomation.intelligentmail.dll
Namespace: IDAutomation.IntelligentMail;
Constructor: IntelligentMail
Code example:
Dim USPSBarcode as IDAutomation.IntelligentMail.IntelligentMail
ReturnString = USPSBarcode.FontEncode (DataToEncode)
IDAutomation_Uni
USPS Postnet Postnet (DataToEncode, IncludeCheckDigit) IDAutomation_Uni
USPS Planet Planet (DataToEncode, IncludeCheckDigit) IDAutomation_Uni
Methods for the DataBar Barcode Font
The methods listed below are preceded with IDAutomation_DataBar_ and are only to be used with the IDAutomation GS1 DataBar Font. Namespace: IDAutomation.DataBar; Constructor: DataBar
Barcode Type Method(s) & Notes Font to use
DataBar DataBar (DataToEncode) IDAutomation DataBar 34
DataBar Expanded DataBarExpanded (DataToEncode, 22) IDAutomation DataBar 34
DataBar Exp. Stacked DataBarExpanded (DataToEncode, Segments) IDAutomation DataBar 34
DataBar Limited DataBarLimited (DataToEncode) IDAutomation DataBar 13
DataBar Stacked DataBarStacked (DataToEncode) IDAutomation DataBar 13
DataBar Stacked Omnidirectional DataBarStackedOmniDirectional (DataToEncode) IDAutomation DataBar 34
DataBar Truncated DataBar (DataToEncode) IDAutomation DataBar 13
Function Part Descriptions

Creating .NET Barcodes with Other Products

In addition to this product, IDAutomation offers a few other options that create barcode images in .NET without the use of fonts:

.NET Barcode Font Encoder Assembly & DLL Support

Free product support is available by reviewing the font problems and solutions information that IDAutomation has documented and by searching resolved public forum threads.

Pre-sales and existing customer support is available by contacting IDAutomation, and additional technical support may be attained with the purchase of the one year Priority Support and Upgrade Subscription.

 © Copyright 2014 IDAutomation.com, Inc., All Rights Reserved. Legal Notices.

 Barcode Fonts | Components | Scanners | Support | Contact Us
Training Videos on YouTube Join us on Google Plus Join us on LinkedIn Follow us on Twitter Like us on Facebook
Over 70% of Fortune 100 companies use IDAutomation's products to automate their businesses.