Home All Groups Group Topic Archive Search About

VB .NET 2k3 print directly to parallel port

Author
4 Apr 2005 10:13 PM
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

Author
5 Apr 2005 3:06 AM
Crouchie1998
Here's your solution:

http://support.microsoft.com/default.aspx?scid=kb;en-us;322090

Crouchie1998
BA (HONS) MCP MCSE
Author
5 Apr 2005 7:05 PM
Peter Rohlfs
*** Sent via Developersdex http://www.developersdex.com ***