IDAutomation.com, Inc. is a BBB Accredited Business. Click for the BBB Business Review of this Computers Hardware, Software & Services in Tampa FL
Contact IDAutomationView your cart in the IDAutomation Store
 
Loading
Home > Barcode Components > Native Barcode for Crystal Reports > User Manual

Native Crystal Reports User Manual

Order Native Crystal Reports Barcode Generator Download Demo of Native Crystal Reports Barcode GeneratorForum support for Crystal Reports Generator

NOTE: This product supports Crystal version 9 and later. Refer to the Crystal Integration Guide for products that support earlier versions.

Legal Notice: This product is Patented. Reports containing this object may only be distributed outside the licensed organization with the purchase of a Developer License to the Native Barcode Generator.

Product Overview

The Native Barcode Generator is an object that may be easily inserted into a Crystal Report to create barcode images. Once installed in a report, no other components or fonts need to be installed to create barcodes; it is the complete barcode generator that stays with the report, even when distributed.

Supported Barcode Symbologies:

The following barcode symbologies may be created upon request with the purchase of the Unlimited Developer License:

  • Code 93
  • Intelligent Mail (AKA OneCode)

Barcode Integration Tutorial


View Video Full Screen on YouTube

Installing the Native Barcode Generator is a fairly simple process. Several generators are created for different barcode types.

  1. Extract the files from the Native Barcode Generator package.
  2. Several generators are created for different barcode types. Open the report that represents the barcode type that is needed. If in doubt, IDAutomation recommends choosing Code 128 Auto, which is in the file named IDAutomation Native - Code 128 Auto.rpt.
  3. Choose View - Design to switch to design mode and locate the Native Barcode Generator on the report.
  4. Highlight the Native Barcode Generator object and choose Edit - Copy. The Native Barcode Generator object is the first field in the details area that contains very small text.
    Insert Native Barcode Object for Crystal Reports
  5. Open the report the barcode is needed for and choose Edit - Paste to paste the Native Barcode Generator object where it is desired.
    • When using Code 128 and GS1-128 (UCC/EAN-128), the text object just below the Native Barcode Generator object should also be copied, if it is desired to have the text interpretation appear below the barcode.
  6. Highlight the object and choose Edit - Edit Formula.
  7. Modify the "DataToEncode =" line of the formula to equal the data that is to be encoded in the barcode.
    Enter formula for datatoencode.
    If an error such as "A string is required" appears, the data will need to be converted to a string with a crystal function. For example: DataToEncode = cStr( {Table1_.FloatValueField},0 )
  8. Optionally, variables below the "DataToEncode =" line of the formula may be changed as necessary.
    • When changing the "BarHeight =" variable, the size of the object must also be increased so that taller barcodes may be contained. The approximate height is determined by the following formula:
        Height in Inches = (Font Size) * (BarHeight) * 0.015
        Height in CM    = (Font Size) * (BarHeight) * 0.04

      For example, the default BarHeight of 8 equals about 0.3 inches and 1 centimeter.
  9. If it is necessary to change the X dimension or barcode width, highlight the object and change the font point size. The point size must be small, generally 3 or 4 points. Because the drop down box does not contain these small sizes, they must be manually typed in. The font selected for the object must be "Courier New" or other mono-spaced Unicode font.
    The font must be Courier New.
     

    Point Size

    Approximate X Dimension

    2 08 Mils
    3 12 Mils
    4 16 Mils
    5 20 Mils
    6 24 Mils
    7 28 Mils
    8 32 Mils
  10. Run the report to verify barcodes are being properly created. Ensure the object has been sized properly to contain the entire barcode. If the width of the symbol is larger than the object, several white lines will appear.
    Truncated barcode object
  11. Print the report to verify that the barcodes are created properly and that they can be scanned with a scanner. If a scanner is needed to verify barcodes, IDAutomation offers several affordable, barcode scanner kits including plug-and-play USB scanners.
  12. It is normal to view some distortion of the symbol on the screen because of low screen resolution. However, the barcodes should be accurate when printed.
    Crystal Reports Barcode

Parameters

Each symbology has its own .rpt code example included in the licensed download zip file. This code should be copied and pasted into the Formula Editor and then modified as needed. Below is a list of the symbologies and the parameters associated:

Symbology Associated .rpt File Parameters
Code 39 Native - Code 39.rpt DataToEncode As String
BarHeight As Number
N_Dimension As Number
IncludeCheckDigit As Boolean
Codabar Native - Codabar.rpt DataToEncode As String
BarHeight As Number
N_Dimension As Number
CodabarStart As String
CodabarStop As String
Code 128 Auto Native - Code 128 Auto.rpt DataToEncode As String
BarHeight As Number
ApplyTilde As Boolean
Code 128 A Native - Code 128 A.rpt DataToEncode As String
BarHeight As Number
Code 128 B Native - Code 128 B.rpt DataToEncode As String
BarHeight As Number
Code 128 C Native - Code 128 C.rpt DataToEncode As String
BarHeight As Number
Interleaved 2 of 5 Native - Interleaved 2 of 5.rpt DataToEncode As String
BarHeight As Number
N_Dimension As Number
IncludeCheckDigit As Boolean
MSI Native - MSI.rpt DataToEncode As String
BarHeight As Number
N_Dimension As Number
IncludeCheckDigit As Boolean
Postnet Native - Postnet.rpt DataToEncode As String
BarHeight As Number
N_Dimension As Number
IncludeCheckDigit As Boolean
Data Matrix Native - DataMatrix.rpt DataToEncode as String
processTilde As Number
PreferredFormat as Number
EncodingMode as Number
PDF417 Native - PDF417.rpt DataToEncode As String
EccLevel As Number
ColumnSpecify As Number
RowSpecify As Number
PDFTruncate As Number
  • DataToEncode takes a string of data to encode.
  • BarHeight takes a numerical value.
  • IncludeCheckDigit can be True or False.
  • N_Dimension difference between narrow and wide bars.
  • CodabarStart start character for Codabar. The letters A, B C and D are used for start and stop codes. It takes a string such as "A"
  • CodabarStop stop character for Codabar. The letters A, B C and D are used for start and stop codes. It takes a string such as "D"
  • ApplyTilde encodes functions with ~ character. It takes True or False.
2D Specific:
  • processTilde encodes functions with ~d character. It takes a number 1 or 0.
  • PreferredFormat generates the symbol size as defined by the corresponding number as outlined in the rpt file.
  • EncodingMode is the encoding mode (ASCII, BASE256, TEXT, C40).
    • E_BASE256 = 0
    • E_C40 = 1
    • E_TEXT = 2
    • E_ASCII = 3
  • EccLevel is the Error Correction Level.
  • ColumnSpecify is the amount of columns for PDF417.
  • RowSpecify is the amount of rows for PDF417.
  • PDFTruncate is the truncate PDF417.

Technical Support

Forum support for Crystal Reports GeneratorCommon Problems and Solutions:

  • If scanning problems are encountered, verify a printer of 600 DPI or greater is being utilized. A large point size such as 5 points must be used with low resolution printers. IDAutomation also offers many barcode fonts that print well to low resolution printers.
  • Ensure the barcode can fit in the object. If the width of the barcode is larger than the object, several white lines will appear.
    Truncated barcode object
  • The font selected for the object should be "Courier New," "Lucida Console" or other mono-spaced Unicode font.
    Barcode is created with Unicode Font.
    A proportional font may also be used for some linear barcode types, however it is not recommended. If a proportional font is used, change MonoSpaceFont = True to MonoSpaceFont = False in the formula.
  • If several small question marks appear instead of a barcode when creating a PDF for performing other conversions of the report, it is an indication that the component performing the conversion is not Unicode compliant. In this situation, contact the component vendor to obtain an updated or Unicode compliant version.
  • In the event white lines appear in the barcode, highlight the object and choose Format - Field - Paragraph. Adjust the line spacing to the largest size that eliminates white lines in the symbol. Generally, the setting of 0.8 to 0.95 is used for the "Courier New" font.
    Set the line spacing at .08.
  • The Data Matrix and PDF417 Generators provided in the 2D version may generate slowly because of the complex algorithms used in these symbologies. IDAutomation recommends encoding 50 characters or less when using these symbologies. More data may be encoded, although the report may take longer to generate. To quickly generate 2D barcodes in Crystal Reports, use the supplied UFL in the IDAutomation Data Matrix Font and Encoder or the PDF417 Font and Encoder.
  • If an error such as "A string is required" appears, the data will need to be converted to a string with a crystal function.
    For example: DataToEncode = cStr( {Table1_.NumberField1},0 )

Optional Software Products

Additional problems and solutions are provided on the barcode font troubleshooting page and by searching resolved public forum threads. Priority phone, email and forum support is provided up to 30 days after purchase. Additional priority phone, email and forum support may be obtained with an active Priority Support and Upgrade Subscription.

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.