New User? Sign Up  |  Sign In  |  Help
Barcode support and
tutorials from IDAutomation
and the community.
Click for the BBB Business Review of this Computers Hardware, Software & Services in Tampa FL
Resolved Questions Bookmark and Share
Albar

Unable to Generate 2D Barcodes of Sufficient Length

We are creating PDF417 barcodes in Crystal Reports and printing to a Zebra 110Xi4 printer (600 DPI).

In general, the DataToEncode of the PDF417 barcodes are using the following pattern:

PPPPPPPPYYYYMMDDSSSSSSS

Where P is the part number (up to 30 characters in length), YYYYMMDD is date (8 characters in length) and S is serial number (up to 8 characters in length).

Observations:
If the overall length of DataToEncode is set to 21 characters (or less), it can be scanned with our Symbol scanner. If the overall length exceeds 21 characters, it cannot scan.

What are your suggestions?

Operating System: Windows

Application: Crystal Report

10-28-15     1397 day(s) ago    

  Report Abuse

 

James

Best Answer

Thank you for the clarification. While troubleshooting custom code is outside the scope of support, it seems that the issue is that the result in Point 2’s DataToEncode is being fed in as numbers, where our function needs the data-type to be a string (text).

Solution:
Try surrounding the entire right-hand side of the statement in cstr(), Crystal’s ‘convert to string’ function.

Applies To:
• Product: Native Barcode Generator for Crystal Reports
• Implementation: Native Crystal Reports User Manual

Posted 1396 day(s) ago

()
()
  Report Abuse
 
Find Interesting
 
Email to Others
 
Bookmark
 
Subscribe to Answer Alert
No comments yet.     Be the first to comment.
Other Answers (3)

Albar
[Support Note: Modified to remove proprietary code and to make easier to read]

I am using Crystal Reports Native Formula for IDAutomation PDF417 Fonts (Version 2006.11a ) to generate the 2D data. If I restrict the overall length of the codified string, it will scan, otherwise it will not.

These are my properties:

EccLevel = 0
ColumnSpecify = 0
RowSpecify = 0
PDFTruncate = 0



My Code:

DataToEncode = CStr({V_LMINVTRY_MANUFACTURED.CSERIAL}) & CStr({@Date}) & CStr({V_LMINVTRY_MANUFACTURED.PART_NO})

if len(Trim({V_LMINVTRY_MANUFACTURED.PART_NO})) >10 then
DataToEncode = ({V_LMINVTRY_MANUFACTURED.PART_NO}) & ({@Date}) & CStr({V_LMINVTRY_MANUFACTURED.CSERIAL})

else

DataToEncode = (Trim({V_LMINVTRY_MANUFACTURED.PART_NO}) & space(11-len(Trim({V_LMINVTRY_MANUFACTURED.PART_NO})))) & CStr({@Date}) & CStr({V_LMINVTRY_MANUFACTURED.CSERIAL})
end if
DataToEncode = (Trim({V_LMINVTRY_MANUFACTURED.PART_NO})) & ({@Date}) & ({V_LMINVTRY_MANUFACTURED.CSERIAL})


Point 1 - This will scan:
DataToEncode = "12345" & ({@Date}) & ({V_LMINVTRY_MANUFACTURED.CSERIAL})


Point 2 - This will not scan:
DataToEncode = (Trim({V_LMINVTRY_MANUFACTURED.PART_NO})) & right(({@Date}),6) & ({V_LMINVTRY_MANUFACTURED.CSERIAL})




Posted 1396 day(s) ago

()
()
   Report Abuse

Albar
DataToEncode = (Trim({V_LMINVTRY_MANUFACTURED.PART_NO})) & ({@Date}) & ({V_LMINVTRY_MANUFACTURED.CSERIAL})

DataToEncode ="15344S-AB2015102801234567"

image image

Posted 1397 day(s) ago

()
()
   Report Abuse

James
To can analyze the issue further, very specific information is needed.

Please post all of the following (per barcode):

1. Example of hard-coded IDAutomation function - which is needed in the form of (this will allow data being encoded to be seen):

barcode_function_called("ABC123")

The function cannot be analyzed with dataset field names:

barcode_function_called([TableName])

2. A clear screenshot of the barcode resulting from #1.
3. A clear screenshot showing the encoded text from #2 (please change the barcode font from the field and assign a non-barcode font, like Arial or Calibri).

Posted 1397 day(s) ago

()
()
   Report Abuse
Email this question link to friends
You must enter an email address, if name is entered or vice-versa for each friend.
Friend #1 -
Friend #2 -
Friend #3 -
Friend #4 -
Friend #5 -
  Your comment on this question
  |         |  
bold  italic  underline  strike       big  small       superscript  subscript 
  Allows to add a link. Added links would only be converted to actual clickable link, when the domain of the link is white-listed by administrator.
Caption :
Link URL :
(Must starts with "http://")
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :   Upload New
(Image url must always starts with " http:// ")
Width : pixels
(Must not be greater than 450px. Enter 0px for no resize)
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Up to 5000 Characters are allowed. Current Count: 0
  Your comment on this answer
  |         |  
bold  italic  underline  strike       big  small       superscript  subscript 
  Allow you to add a link. Added links would only be converted to actual clickable link, when the domain of the link is white-listed by administrator.
Caption :
Link URL :
(Must start with "http://" or "https://")
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :   Upload New
(Image url must always start with "http://" or "https://")
Width : pixels
(Must not be greater than 450px. Enter 0px for no resize)
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Up to 5000 characters are allowed. Current Count: 0

You may answer and comment on any thread according to the Terms and Conditions.

 © Copyright 2019 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