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

IDAutomation will be closed November 27th & 28th for Thanksgiving.

Home > Font Encoders > Crystal Reports Barcode Font Encoder UFL

Crystal Reports Barcode Font Encoder UFL

Download .NET Assembly Files Now Function List Crystal Reports Support

Linear UFL Tutorial Index:

Linear UFL Installation

Pre-Installation Requirements:

Installation Notes:

  • When using Code 128 or Interleaved 2 of 5 barcode fonts, if the character set is not US English, 1252 Latin-1, 1250 European, 1251 Cyrillic, 1253 Greek, 1254 Turkish, 1255 Hebrew, or 1256 Arabic, the Universal Barcode Fonts must be used.
  • The installer detects the .NET version, if Windows is 32/64 bit, and registers the UFLs automatically.
  • Various .NET versions installed on same machine does not affect functionality.
  • Use of the Silent Installer (including the accompanying setup files) requires the Developer License (or above) for any Barcode Font Package.
  • For registration specifics and redistribution usage, refer to the Linear UFL Redistribution.

Installation Steps:

  1. Close all programs.
  2. Install the IDAutomation demo or purchased barcode fonts of choice.
  3. Download the Crystal Reports Barcode Font Encoder UFL.
  4. Unzip the download's .Zip file to a memorable location.
  5. From the above location, run the .exe file that begins with the name IDAutomation_CrystalUFL.

Barcode UFL Usage Instructions

  1. Access the report in Crystal Reports.
  2. Choose the Design tab to enter the design mode of the report.
  3. Open the Field Explorer (In Crystal 9, select View - Field Explorer. In versions prior to 9, select Insert - Formula Field).
  4. Right-click on Formula Fields and select New.
  5. In the Formula Name dialog box, enter a name to identify the formula field. In this example, the formula is simply named "Barcode."
    Enter the Name You Want to Identify the Formula by in the Formula Name Box.
  6. Click OK and select Use Editor if asked. The Formula Editor should now be open.
  7. In the Functions column, expand the Additional Functions then expand the Visual Basic UFLs section to select the appropriate function:
    Enter the Name You Want to Identify the Formula by in the Formula Name Box.
  8. Make sure the utilized function matches the font listed in the Font To Use column. For example, only use the IDAutomationCode128() function with the IDAutomationC128 font.
  9. With the cursor positioned between the parentheses of the function, select the data field that is to be encoded. Data fields used in this formula must be formatted as text. If the data fields are not text, use ToText or cStr for conversion. The syntax of the formula should look similar to one of the the formulas below:
    • Static Text (useful in testing scenarios): IDAutomationCode128 ("ABC 123!", true)
    • Dynamic Data source: IDAutomationCode128 ({Table1.Field1}, true)
    • Dynamic Data source (non-text field): IDAutomationCode128 (cStr({Table1.Field1}, 0), true)
  10. Choose Save and then Close.
  11. To include a text interpretation of the encoded data below the barcode, consider creating an additional formula field using the function IDAutomationUniC128HR, which returns the human-readable (HR) text. For example, to display the human-readable (HR) interpretation of {Table1.Field1} as GS1-128 text, the field BarcodeHR is created with the formula IDAutomationUniC128HR ({Table1.Field1}, true).
  12. Return to the Field Explorer dialog box.
  13. Click on the formula field and drag it onto the report.

    In the graphic above, the @Barcode formula produces formatted data for Code 128 and the @BarcodeHR formula produces the human readable, as shown in the graphic below.
  14. Once the fields are created, choose the Preview tab to verify the data is pulled and properly formatted to the barcode font.
    The Preview tab shows whether the data is being pulled from the fields and properly formatted to the barcode font.
    Note: Depending on the symbology used, unrecognizable characters may appear as the data from the fields - this is the formatted data.
  15. Select the Design tab again and size the barcode formula field to display the appropriate barcode font in the report.
  16. Change the formula field to the appropriate barcode font and set the size to 12 points or another appropriate size. Ensure the formula used matches the font listed in the Font to Use column. This is a very important step because the barcodes will not be properly created if this step is performed incorrectly.
  17. Select the Preview tab (or File - Print Preview) to view the barcodes in the report. Print one page of the report and test with a scanner.
    When you choose the Preview tab you should see your barcodes in the report.
    Consider testing with the easy-to-use IDAutomation USB Barcode Scanner, which reads all popular linear and GS1 DataBar barcodes. When 2D Data Matrix, PDF417, QR Code, Aztec or Intelligent Mail symbols need to be verified, IDAutomation suggests the IDAutomation 2D Barcode Scanner.

UFL Barcode Functions List

The methods listed below are available in the Linear UFL, serve as the application programming interface (API), and are valid only when used with the font listed in the Font to Use column.

Linear Barcode Font Functions
Barcode Type Function (name preceded with IDAutomation)
 (Examples shown - view Method Descriptions for more information)
Font to Use
Code 11 Code11 (DataToEncode) IDAutomationC11
Code 128
(Auto Mode)
Code128 (DataToEncode, ApplyTilde)
IDAutomationCode128 ( "123456789012", FALSE)
IDAutomationC128
Code 128
(Manual Mode)
Consider using Auto Mode for most situations.
Code128a (DataToEncode)
Code128b (DataToEncode)
Code128c (DataToEncode)
IDAutomationC128
GS1-128
(UCC/EAN/SCC/IMpb)
Code128 (DataToEncode, ApplyTilde)
GS1-128 is enabled in Code 128 Auto by setting ApplyTilde to True:

Parentheses
: IDAutomationCode128 ( "(12)3456789012", TRUE)
Tilde
: IDAutomationCode128 ( "~212123456789012", TRUE)
IDAutomationC128
Code 39 Code39 (DataToEncode)
Code39Mod43 (DataToEncode)
IDAutomationC39
Code 93 Code93 (DataToEncode) IDAutomationC93
Codabar Codabar (DataToEncode) IDAutomationCB
EAN-13 EAN13 (DataToEncode) IDAutomationUPCEAN
EAN-8 EAN8 (DataToEncode) IDAutomationUPCEAN
Interleaved 2 of 5 I2of5 (DataToEncode)
I2of5Mod10 (DataToEncode)
IDAutomationI25
MSI Plessey MSI (DataToEncode) IDAutomationMSI
UPC-A UPCa (DataToEncode) IDAutomationUPCEAN
UPC-E UPCe (DataToEncode) IDAutomationUPCEAN
USPS Postnet Postnet (DataToEncode) IDAutomationPOSTNET
USPS Planet Postnet (DataToEncode) IDAutomationPOSTNET
Intelligent Mail Barcode Font Function
The method listed below can be used with the USPS Postnet, USPS Intelligent Mail IMb, and the IDAutomation Universal Barcode Font Packages.
Barcode Type Function (name preceded with IDAutomation)
 (View Method Descriptions for more information)
Font to Use
USPS IntelligentMail IntelligentMail (DataToEncode) IDAutomationPOSTNET
or IDAutomationIMB
or IDAutomation_Uni
Universal Barcode Font Functions
The methods listed below are only to be used with the IDAutomation Universal Barcode Font Advantage Package.
Barcode Type Function (name preceded with IDAutomation)
 (Examples shown - view Method Descriptions for more information)
Font to Use
Code 128
(Auto Mode)
UniCode128 (DataToEncode, ApplyTilde)
IDAutomationUniCode128 ("123456789012", FALSE)
IDAutomation_Uni
Code 128
(Manual Mode)
Consider using Auto Mode for most situations.
UniCode128a (DataToEncode)
UniCode128b (DataToEncode)
UniCode128c (DataToEncode)
IDAutomation_Uni
GS1-128
(UCC/EAN/SCC/IMpb)
UniCode128 (DataToEncode, ApplyTilde)
GS1-128 is enabled in Code 128 Auto by setting ApplyTilde to True:

Parentheses
: IDAutomationUniCode128 ( "(12)3456789012", TRUE)
Tilde
: IDAutomationUniCode128 ( "~212123456789012", TRUE)
IDAutomation_Uni
Code 39 UniCode39 (DataToEncode, N_Dimension, IncludeCheckDigit)
IDAutomationUniCode39 ("12345678", 3, TRUE )
IDAutomation_Uni
Codabar UniCodabar (DataToEncode, N_Dimension, StartChar, StopChar)
IDAutomationUniCodabar ("12345678", 2, "A", "B" )
IDAutomation_Uni
Interleaved 2 of 5 UniI2of5 (DataToEncode, N_Dimension, IncludeCheckDigit)
IDAutomationUniI2of5 ("12345678", 2, FALSE)
IDAutomation_Uni
MSI Plessey UniMSI (DataToEncode, N_Dimension, IncludeCheckDigit) IDAutomation_Uni
USPS Postnet UniPostnet (DataToEncode, IncludeCheckDigit) IDAutomation_Uni
USPS Planet UniPlanet (DataToEncode, IncludeCheckDigit) IDAutomation_Uni
DataBar Barcode Font Functions
The methods listed below are only to be used with the IDAutomation GS1 DataBar Font Package.
Barcode Type Function (name preceded with IDAutomation)
 (View Method Descriptions for more information)
Font to use
DataBar DataBar(DataToEncode) IDAutomation DataBar 34
DataBar Expanded DataBarExpanded(DataToEncode , 22) IDAutomation DataBar 34
DataBar Expanded Stacked DataBar Expanded Stacked requires a custom formula field. 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
Miscellaneous Functions
Barcode Type Function (name preceded with IDAutomation)
 (View Method Descriptions for more information)
Font to use
Not Applicable UniC128HR (DataToEncode, ApplyTilde)
This method returns standard text for Code 128 barcodes, such as with GS1-128.
Text Font
Not Applicable MOD10 (DataToEncode) Not Applicable
Not Applicable SpliceText (DataToEncode, SpacingNumber, ApplyTilde) Not Applicable
Function Part Descriptions
Symbology-Specific Notes
DataBar Expanded Stacked:

This procedure inserts a formula field for DataBar Expanded Stacked symbols and is compatible with Crystal Reports version 9 and up. This is a necessary step to ensure that DataBar Expanded Stacked symbols are created properly in Crystal Reports.

  • In the report and choose View - Design to switch to design mode.
  • Select the code below and copy it to the clipboard:
stringVar DataToEncode:= {Table1.DataField1};
numberVar Segments:= 6; 
stringVar CompleteBarcodeString:=""; 
numberVar i:=0;
numberVar DataSegments:= ToNumber (IDAutomationDataBarExpandedStackedSet(DataToEncode,Segments));
For i:=1 to DataSegments Do 
( 
CompleteBarcodeString := CompleteBarcodeString + IDAutomationDataBarExpandedStackedGet(DataToEncode,Segments,i);
); 
CompleteBarcodeString
  • Return to the report and choose Edit - Paste to paste the field where it is desired.
  • Highlight the field and choose Edit - Edit Formula.
    • Modify the DataToEncode:= line of the formula to equal the data that is to be encoded in the barcode.
    • Change the Segments:= 4; line of the formula to equal the number of segments needed.

Formulas to Combine Multiple Fields or Encode Functions

Functions may be easily modified with formulas to combine multiple fields or append text in a single barcode, as demonstrated in the following examples:

  • This formula appends the text "Barcode", combines two fields in a single barcode and places a tab function (which is ASCII 009) between them:
        IDAutomation_Code128 ( "Barcode" & {Table1.DataField1} & "~009" & {Table1.UPC}, TRUE)
  • This formula adds in the GS1-128 Application Identifier (~202) and calculates a MOD 10 check digit.
        IDAutomation_Code128 ("~202" & {Table1.DataField1} & "~m19", TRUE )

Linear UFL Redistribution

Installation is automatic when running the included installer. Silent installations are also available for all associated font developer licenses. The following are the suggested files, installation locations, and registration commands to aid in the redistribution of the Linear UFL with a custom application or when installing manually.

Notes:

  • The user performing the install must have Administrator rights to install barcode fonts register the Linear UFL.
  • The Linear UFL requires the minimum Microsoft .NET Framework version installed be 2.0 or greater.
  • This UFL supports the 2 primary versions of the .NET Common Language Runtime (CLR):
    • CLR 2.0: .Net 2.0, 3.0, and 3.5
    • CLR 4.0: .Net 4.0 and 4.5.x
  • The Linear UFL, unlike its Win32 counterparts, is not dependent on a specific file location (as in a Windows System folder) for its installation. Instead, it is registered in place with the corresponding assembly registration (RegAsm) commands. The installation locations below are suggested purely for consistency with standard practice.
  • While the Linear UFL may be registered in the Global Assembly Cache (GAC), GAC registration not a replacement for the RegAsm registrations and has no discernable benefit. Therefore, GAC registration is not needed and is outside the scope of this documentation.
  • The 32bit and 64bit Linear UFL file names are required to be the same, as the report that references the functions expects the same file name across all versions (and varieties) of Crystal Reports in which it runs.

Linear UFL Installation and Distribution: 32-bit Operating Systems

Type File to Distribute
(in download)
Install Location Manual Install Command
(adjust if different - use the registration command, based on the CLR version)
32-bit Linear UFL \32bit\CRUFLIDAutomation.dll %windir%\System32* C:\Windows\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe /codebase C:\Windows\System32\CRUFLIDAutomation.dll
- OR -
C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe /codebase C:\Windows\System32\CRUFLIDAutomation.dll

Linear UFL Installation and Distribution: 64-bit Operating Systems (Both UFL registrations are required)

Type File to Distribute
(in download)
Install Location Manual Install Command
(adjust if different - use the registration command, based on the CLR version)
32-bit Linear UFL \32bit\CRUFLIDAutomation.dll %windir%\SysWOW64* C:\Windows\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe /codebase C:\Windows\SysWOW64\CRUFLIDAutomation.dll
- OR -
C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe /codebase C:\Windows\SysWOW64\CRUFLIDAutomation.dll
64-bit Linear UFL \64bit\CRUFLIDAutomation.dll %windir%\System32* C:\Windows\Microsoft.NET\Framework64\v2.0.50727\RegAsm.exe /codebase C:\Windows\System32\CRUFLIDAutomation.dll
- OR -
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\RegAsm.exe /codebase C:\Windows\System32\CRUFLIDAutomation.dll

* %windir% is the Windows directory, which can be found by pressing Windows + R > type in %windir% > Enter

Linear UFL Support

Free product support is available by reviewing the font problems and solutions 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.

Issues and Notices

2D Crystal Report Barcode Font Integration

2D barcode fonts such as Aztec, DataMatrix, PDF417, Maxicode and QR-Code must use the UFL supplied with that specific package.

Related Products and Information

Previous Versions (Deprecated)

The recommendation of IDAutomation is that all reports referencing the following be updated to the latest version of the Linear UFL. These past UFLs are listed for completion but are deprecated and no longer officially supported:

Back to Top

 © 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.