Just can't get around this... NEED HELP

  • Thread starter Thread starter TimB
  • Start date Start date
T

TimB

I am trying to send a control string to the LPT1 port. I have no problem
doing it in VB6... but for the life of me I can't do it in VB.NET.

All I get is an error with the code below .NET does not seem to like the
"LPT1" in the
fileopen. Don't have a clue what else to put in there... HELP ME PLEASE.



FileOpen(1, "LPT1", OpenMode.Output, OpenAccess.Write)

PrintLine(1, Chr(27) & Chr(112) & Chr(0) & Chr(48))

PrintLine(1, Chr(27) & Chr(112) & Chr(1) & Chr(49))

FileClose(1)



Thanks,

TimB
 

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