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

Posted on 2006-03-20
Last Modified: 2010-04-23
      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)
Question by:Millkind
    LVL 21

    Accepted Solution

    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,

    Author Comment

    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.
    LVL 21

    Expert Comment

    glad you sorted it out

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now