VB .NET 2k3 print directly to parallel port

  • Thread starter Thread starter Peter Rohlfs
  • Start date Start date
P

Peter Rohlfs

I'm trying to bring some code from an Access database
into Visual Basic .net 2k3.

The access code goes directly to LPT1 as follows
----------------------------
Open "lpt1" For Output As #1 ' Open LPT1 for output.

Print #1, "^FO80,85"
Print #1, "^BY3,3,1"
Print #1, "^B2,60,y,n"
Print #1, "^FD"; ID
Print #1, "^FS"
Print #1, "^XA"
------------------------------
fileopen won't let me use "lpt1".

How do I send codes directly to lpt1?

Thanks,
Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top