×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

RIGHT JUSTIFY A BARCODE ?

RIGHT JUSTIFY A BARCODE ?

RIGHT JUSTIFY A BARCODE ?

(OP)
Hi,
   Have used VB to right justified text nicely with Printer.CurrentX = (5370 - (Printer.TextWidth(frmRollsRoyce.txt4)). But am having difficulty doing this with barcode (code39e). Have added a multiplication factor like 1.2 and it comes out perfectly with alpha numeric data but it is off if it is just alpha data in the barcode. The width of the barcode is not uniform perhaps due to font.

Any suggestions greatly appreciated.

 Thanks, Steve.

RE: RIGHT JUSTIFY A BARCODE ?

3of9 should be fixed pitch.

Jim Asman
jlasman@telus.net

RE: RIGHT JUSTIFY A BARCODE ?

(OP)
Thanks for the reply Jim ! Will switch from Code39e to just code39 and test it out and report back. Steve.

RE: RIGHT JUSTIFY A BARCODE ?

(OP)
Hi Jim,
       Switched to Code39One but with no change. Have realized that when the font size is set to 16 the proportion is about 1 char to 1/8 of an inch. Just need to work on my math a little to make this come out close. This should be possible

Thanks again, Steve.

RE: RIGHT JUSTIFY A BARCODE ?

Something is wierd here.

The name 3of9 means that each character contains 9 bars, 3 of which are wide(same width), and the other 6 are narrow(same width). Thus ALL characters are the same width.

Maybe the font has wider white bars than black bars to allow for some bleed of the black bars.

Jim Asman
jlasman@telus.net

RE: RIGHT JUSTIFY A BARCODE ?

(OP)
Hi Jim,
        Mission accomplished. Found the character width to be a consistent 177 pixels with 16 font size. Here is the
final vb code for RIGHT JUSTIFYING a barcode. It is just a matter of playing with the x coordinate to determine final location.

Printer.CurrentX = (5020 - (Printer.TextWidth(frmROCN.txt4)))

Many thanks, Steve.

RE: RIGHT JUSTIFY A BARCODE ?

Code 39 is fixed-pitch. Try use a quality code 39 font.

www.morovia.com/font/

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close