Barcode Fonts, Components, ActiveX and .NET Windows Forms Controls, Java Servlets, 
DLLs and Barcode Scanners. IDAutomation.com, Inc., Computers Hardware, Software & Services, Tampa, FLThis site chose the Norton Secured Seal to promote trust online with consumers. View your cart in the IDAutomation Store


Home > Barcode Components > Native Barcode for i-net Clear Reports > User Manual

Native Barcode for i-net Clear Reports User Manual

This product is Patented. Reports containing this object may only be distributed outside the licensed organization with the purchase of a Developer License.

Order Native i-net Clear Reports Barcode Generator Download Demo of Native i-net Clear Reports Barcode Generator View the release log for the i-net Clear Reports Native Generator Forum support for i-net Clear Reports Generator

Barcode Integration Tutorial

The Native i-net Clear Reports Barcode Generator is an object that may be inserted into a report to create barcode images. Once the barcode is 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.

  1. Extract the IDAutomation report files from the Native Barcode Generator package.
  2. Open i-net Clear Reports Designer version 15 or later. Earlier versions may work, however compatibility is not guaranteed.
  3. Several generators are created for different barcode types. Open the IDAutomation report that represents the barcode type that is needed. If in doubt, IDAutomation recommends choosing Code 128 Auto, which is in the file named IDAutomationNative-Code-128-Auto.rpt. In some cases the report may take a few minutes to load.
  4. After the IDAutomation report is open, note the formula field names. This is the formula that generates the barcode image within a field on the report.

    Barcode Field Name
  5. Create the same formula field name within your report that will contain the new barcode. Use the window menu option to easily switch between reports. In this case, we created a new formula field and named it IDAutomation_C128.

    Formula field name
  6. Within the properties tab of the field, change the syntax from Crystal to Basic and choose OK.

    Crystal to Basic Syntax
  7. Switch back to the IDAutomation report and copy all of the source code of the formula to the clipboard.

    Selecting formula code
  8. Switch to your report and paste this formula into the new formula field that was just created and choose OK.

    Paste barcode formula

    If you receive errors in the formula, verify that Basic Syntax is selected as mentioned in step 6.
  9. Close the formula editor and drag the formula field into your report where the barcode is needed. Size the field so it is larger than the barcode that will be generated within it and choose to edit the properties of this field.

    Sizing the formula field
  10. Change the font of this field to "Courier New" and enter a size of 3 points. If Courier New is not available as a font choose another mono-spaced Unicode font such as Lucida Console or Consolas.

    Changing the font and size
  11. In the paragraph section change the relative line spacing to 0.34 for linear barcode types such as Code 128 and 0.85 for 2D barcodes such as Data Matrix.

    Relative line spacing
  12. Choose the Result tab and verify the barcode appears properly. The barcode symbol below may appear distorted in print preview because of low screen resolution. It will be accurate when printed or viewed on a high resolution device such as a mobile phone.

    Verify the barcode appears properly

    If the barcode does not appear to be accurate, check the following:
    • Verify the font and paragraph settings from steps 10 and 11.
    • If excessive white horizontal lines appear within the barcode as in the example, lower the relative line spacing mentioned in step 11 until the white lines no longer appear.

      Horizontal white lines in barcode
    • If the symbol appears excessively distorted as in this example, size the formula field larger as mentioned in step 9.

      Distorted barcode field
  13. Edit the formula field in your report and modify the "DataToEncode =" line of the formula to equal the data that is to be encoded in the barcode.

    Selecting the database field

    If an error such as "A string is required" appears, the data will need to be converted to a string with a function. For example: DataToEncode = cStr( {Table1_.FloatValueField},0 )
  14. Optionally, parameters below the "DataToEncode =" line of the formula may also be modified as required.
    • For linear barcodes only, when changing the "BarHeight =" variable, the size of the formula field 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.
  15. The approximate X dimension of the barcode at 3 points is 12 mils. If it is necessary to change the X dimension or barcode width, modify the font size as described in step 10 according to the following chart. If point size is increased, the size of the formula field must also be increased so that wider barcodes may be contained.

    Point Size

    Approximate X Dimension

    2 08 Mils (.02cm)
    3 12 Mils (.03cm)
    4 16 Mils (.04cm)
    5 20 Mils (.05cm)
    6 24 Mils (.06cm)
    7 28 Mils (.07cm)
    8 32 Mils (.08cm)
  16. Run the report to verify barcodes are being properly created. Ensure the object has been sized properly to contain the entire barcode as mentioned in step 12.

Parameters and Barcode Types

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

Symbology Associated .rpt File Parameters (may be modified within the formula)
Code-39 Code-39.rpt DataToEncode As String
BarHeight As Number
N_Dimension As Number
IncludeCheckDigit As Boolean
Code 93 Code-93.rpt DataToEncode As String
BarHeight As Number
Codabar Codabar.rpt DataToEncode As String
BarHeight As Number
N_Dimension As Number
CodabarStart As String
CodabarStop As String
Code-128 Auto Code-128-Auto.rpt DataToEncode As String
BarHeight As Number
ApplyTilde As Boolean
Code 128 A Code-128-A.rpt DataToEncode As String
BarHeight As Number
Code 128 B Code-128-B.rpt DataToEncode As String
BarHeight As Number
Code 128 C Code-128-C.rpt DataToEncode As String
BarHeight As Number
Interleaved 2-of-5 Interleaved-2-of-5.rpt DataToEncode As String
BarHeight As Number
N_Dimension As Number
IncludeCheckDigit As Boolean
MSI MSI.rpt DataToEncode As String
BarHeight As Number
N_Dimension As Number
IncludeCheckDigit As Boolean
Data Matrix DataMatrix.rpt DataToEncode as String
processTilde As Number
PreferredFormat as Number
EncodingMode as Number
2D Specific:

Technical Support

Forum support for i-net Clear Reports Generator
View the release log for the i-net Clear Reports Native Generator

Free product support may be obtained by reviewing the knowledgebase articles that are documented below and by searching resolved public forum threads. Priority phone, email and forum support is also provided within 30 days of purchase. Additional phone, email and forum support is provided with an active Priority Support and Upgrade Subscription.

Back to Top

 ©Copyright 2017 IDAutomation.com, All Rights Reserved. Legal Notices.

 Barcode Fonts | Components | Scanners | Support | Contact Us

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