When Printing Barcode I get a + between each letter. Why?

      When I print a barcode that is all numbers everything is fine
       Print it with all letter or letters and numbers I get +'s in with the characters like happy is h+a+p+p+y
       Any ideas why?


        Dim PrintFont = New Font("Free 3 of 9 Extended", 28)
        Dim yPos As Single = 100
        Dim leftMargin As Single = e.MarginBounds.Left
        Dim BarCodeIn As String = "*" & BarCodeDataIn.Text & "*"
        e.Graphics.DrawString(BarCodeIn, PrintFont, Brushes.Black, leftMargin, yPos, New StringFormat)
MillkindAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

YurichCommented:
I'm not sure why you're getting this +'s - it can be even related to the drivers for your barcode scanner and you wouldn't have too much control over it...

Nevertheless, you can try this: "*" & BarCodeDataIn.Text.Replace( "+", "" ) & "*"

and it will at least remove all +'s from your barcode

good luck,
yurich
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
MillkindAuthor Commented:
I used the code and still got the +'s which lead me to believe my font i downloaded was bad.  Found a new one and it works great.  Thanks for your help narrowing the problem.
0
YurichCommented:
glad you sorted it out
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.