We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Printing control characters in bar code

Medium Priority
2,518 Views
Last Modified: 2013-12-03
How can I print control characters such as Record separator (RS), Group separator (GS), EOT into a barcode, so when read those chars will be used by some software for their own evil purposes??

I have not figured out how to actually get them to print, for example I try to convert  a decimal 29 to ascii (↔) but all I get is a " ? ".  I guess the problem is the control char is being executed at the time i convert it to ascii, or press " ^\ " , etc, so all i get back when reading that barcode are ???s instead.  

I have a sample barcode that, when read displays something like " [)> ▲06↔ ... "
my own printed label will read:                                                 " [)>?06? ... "


In the best cases I have managed to print blank squares instead of "?"...    and thats it.

Thanks for your help


Comment
Watch Question

Author

Commented:
OOOOOPS sorry the "(↔)" part was supposed to show as symbols, such as triangles, arrows, etc.  

Author

Commented:
I have scanned this sample barcode, if anyone is interested I can email this to you, unfortunately at the time I do not have a page to upoad it to.  

Commented:
alcantar06,

It could be that you're attempting to encode characters in the barcode that it simply isn't designed to encode - the valid characters will depend upon the barcode type you're using.

For instance, in Code 39, your can only use "1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ - . $ / + % SPACE"

Have a look at http://www.barcodeman.com/info/barspec.php which contains some useful info about the specifications..

cheers

Commented:
alcantar06,

ps. Extended Code 39 may fit the bill perhaps?  http://www.barcodeman.com/info/c39_ext.php

Author

Commented:
This has to be PDF 417, and I have a sample printed barcode that contains this characters.  Obiously I dont get support from the supplier of this sample

Commented:
alcantar06,

The following link may be of use then as it discusses encoding non-printing and international characters etc in PDF417..

http://www.idautomation.com/pdf417faq.html

Snippet:

"...Java: DataToEncode= "1234" + (char)13 + "56";
Visual Basic: DataToEncode= "1234" & Chr(13) & "56"

Method 2, use ApplyTilde: If ApplyTilde if set to "true" or "1", you can use the format ~ddd if you want to specify the ASCII code of the character to be encoded. Default is off. For example, if you enter the following text in the Data field: pdf~029417 you will actually be encoding   pdfGS417  Where GS is a delimiter ASCII 29 character. This can be used in a single string to encode GS and RS characters (GS = ASCII 29 and RS = ASCII 30). Other commonly used ASCII codes are ~009 for a tab and ~013 which is a return function. These are useful when encoding multiple fields in a single symbol..."



cheers,

Author

Commented:
Found a way.

It would seem my programming language (Agilent VEE) does not support use of this characters.  

Also had some trouble with the printer I was using (intermec) and with the print and design software (Loftware).

What did the trick?  Desgning in Loftware, Printing in Zebra sending commands thru VEE, using Zebra programming Language (ZPL).  

There is an instruction there that will translate a HEX value to its corresponding ASCII character (^FH).

So in VEE, write to an IO object a string:       

             e.g.:        ...^FH^FD", _04,"^FS"


^FH will instruct Zebra to translate the hex num value after the " _ ", in this case #H04 = EOT, prints out as a black diamond.






Commented:
wow... never even heard of that stuff!!

nice one alcantar06 - now I know where to come to for VEE and ZPL support !!  ;)
Commented:
PAQed with points refunded (250)

GranMod
Community Support Moderator

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.