?
Solved

print to usb port using vb6

Posted on 2009-12-23
1
Medium Priority
?
795 Views
Last Modified: 2012-06-27
Hi,

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
Lee
0
Comment
Question by:ljhodgett
1 Comment
 
LVL 42

Accepted Solution

by:
Meir Rivkin earned 2000 total points
ID: 26112098
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

621 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