.NET Font Encoder Assembly & DLL
The IDAutomation .NET Font Encoder Assembly & DLL is a
Font Encoder and Tool
that is used to format text for IDAutomation Barcode Fonts in the Microsoft
.NET Framework. This product supports
standard bar code
fonts, Intelligent
Mail fonts and the
Universal Barcode
Font. This product is royalty-free with the purchase of a license
to one of the IDAutomation
Barcode Fonts.
INDEX:
It is important to have the ability to test barcodes; if a barcode scanner
is not currently owned, IDAutomation also provides
complete barcode scanner kits.
The
download includes a sample application created in ASP.NET; it is the
same application used for the
Online Font Encoder. To
use this application in Visual Studio, it must be extracted into the "fontencoder"
folder under Inetpub\wwwroot. This product is most useful in creating barcodes
for local .NET applications. Although this product is useful in ASP.NET,
the preferred method of generating barcodes in ASP.NET is with the
ASP.NET Server Control
or the ASP Barcode Server
for IIS.
Download Now
The following steps outline the process for setting up the environment
to use the encoder assembly:
- Copy the IDAutomation.NetAssembly.dll to the project directory.
When using Visual Studio, do not copy the file to the bin directory;
the file will be automatically copied there when the project is compiled.
Additional DLLs are provided for Intelligent Mail, Universal and DataBar
encoders.
- Create a reference to the assembly. In Visual Studio .NET, this
is done with Solution Explorer. If Solution Explorer is not visible,
click View | Solution Explorer. Right click "References" in Solution
Explorer and choose "Add Reference". On the Add Reference dialog click
"Browse", select IDAutomation.NetAssembly.dll and click "Open".
Click "OK" on the Add Reference dialog. Additional references must also
be created to use Intelligent Mail, Universal or DataBar encoders.
- In the project, create an object of the class. For example:
Dim FontEncoder As New IDAutomation.NetAssembly.FontEncoder
Use the following code for other encoders:
Universal: Dim UniversalFontEncoder As New
IDAutomation.NetAssembly.UniversalFontEncoder
IntelligentMail: Dim IntelligentMail
As New IDAutomation.IntelligentMail.IntelligentMail
DataBar: Dim DataBar As New IDAutomation.DataBar.DataBar
- Format the data to the font:
txtEncodedText.Text = FontEncoder.Code128(txtDataToEncode.Text)
Examples for other encoders:
txtEncodedText.Text = UniversalFontEncoder.IDAutomation_Uni_C128(txtDataToEncode.Text)
txtEncodedText.Text = IntelligentMail.FontEncode(txtDataToEncode.Text)
txtEncodedText.Text = DataBar.IDAutomation_DataBar_DataBarStackedOmniDirectional(txtDataToEncode.Text)
- After the text is formatted to the font, print or display the text
with the appropriate bar code font selected.
- If necessary, the results can be tested with the
on-line font encoder,
which uses the same DLLs that are provided in this download.
The methods listed below are available in the IDAutomation.NetAssembly.dll
file unless otherwise indicated and are only valid when used with the font
listed in the "font to use" column. All parameters are optional except
DataToEncode.
Methods beginning with IDAutomation_Uni_
are only to be used with the
IDAutomation Universal
Barcode Font Advantage™.
Methods for Standard Barcode Fonts |
Barcode Type |
Method(s) & Notes
(Follow links 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) |
IDAutomation recommends 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 idautomation.intelligentmail.dll
Namespace: IDAutomation.IntelligentMail; Constructor: IntelligentMail().
Code example:
Dim USPSBarcode as IDAutomation.IntelligentMail.IntelligentMail
ReturnString = USPSBarcode.FontEncode (DataToEncode) |
IDAutomationPOSTNET
or
IDAutomation_Uni |
USPS Postnet |
Postnet (DataToEncode,
ReturnType) |
IDAutomationPOSTNET |
USPS Planet |
Planet (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 |
Method(s) & Notes
(Follow links 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 |
MSI /
Plessey |
MSI
(DataToEncode,
N_Dimension,
IncludeCheckDigit) |
IDAutomation_Uni |
USPS IntelligentMail |
FontEncode (DataToEncode)
This method is provided in 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
(Follow links for more information) |
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 |
Description of the parts of the functions:
- ApplyTilde - If the ApplyTilde option is set
to "1" or "True", characters following the tilde may be used to
perform additional calculations or
encode ASCII characters directly.
- DataToEncode - this string value
represents the data being encoded.
- N_Dimension - determines the width
of the wide bars when applicable, which is a multiple of the X dimension.
Valid values are 2, 2.5 and 3. The default is 2. The X dimension is
determined by the font point size.
- IncludeCheckDigit - a Boolean
value that determines whether a check digit should be automatically
calculated and included for the DataToEncode.
- Segments - reducing segments to a
low, even number such as 4, 6 or 8 in a DataBar Expanded symbol can
create a
stacked barcode. The default is 22.
In addition to this product, IDAutomation offers a few other options
that create bar code images in .NET without the use of fonts:
Free product support may be obtained by reviewing articles that are documented
at
IDAutomation's support site and by searching the resolved
public help
desk issues.
Priority phone,
email and help desk support is provided up to 30 days after purchase.
Additional priority
phone, email and help desk support may be obtained if the
Priority Support
and Upgrade Subscription is active.
© Copyright 2000-2009 IDAutomation.com, Inc., All Rights
Reserved. Legal
Notices.
Over 70% of Fortune 100
companies use IDAutomation's products to automate their businesses.
|
|