print to usb port using vb6

Posted on 2009-12-23
Last Modified: 2012-06-27

I've got a zebra tlp 2844 conected to a usb to parallel converter. to print to a standard ltp port I use the following code: -

Private Sub Command1_Click()

Dim label_String As String

Open "LPT1" For Output As 1

    label_String = Chr(10) & "N" & _
    Chr(10) & "ZB" & _
    Chr(10) & "R310,0" & _
    Chr(10) & "A50,2,0,3,1,2,N," & Chr(34) & "STD 512Kb" & Chr(34) & _
    Chr(10) & "P1" & Chr(10)
    Print #1, label_String
    Close #1

End Sub

if I change to lpt to usb001 it does not print anything. What am I doing wrong please?

Many thanks
Question by:ljhodgett
    1 Comment
    LVL 42

    Accepted Solution


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Introduction In a recent article ( for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
    Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
    Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
    This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

    759 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

    11 Experts available now in Live!

    Get 1:1 Help Now