Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21271

Printing to label printer using 'Open' and port name

$
0
0
Hi everyone. I have a label print which prints from a prn file, as in:

Code:

    Open "LPT1:" For Output As #1
    Print #1, strStringToPrint
    Close #1

On entering a valid printer port eg. USB003 or ESDPRT001 (as found on my computer) it prints text on the VB6 formAttachment 97925

I have tried
Code:

For Output Access Write As #1
but it still does send the codes to the printer.

Any help gladly received, thank you.
Attached Images
 

Viewing all articles
Browse latest Browse all 21271

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>