[AccessD] Sending text direct to printer, take 2

Lawrence Mrazek lmrazek at lcm-res.com
Mon May 14 15:47:16 CDT 2007



Hi:

Thanks to Gustav, I have some code that works on my local machine ... however, I'll need to print to an IP address, and I haven't been able to find the syntax.

This Works:
Dim PrtStr As String
PrtStr = "Printer Test Text llllllllllllllllllllllllllllllllllll"
Open "\\HPLaptop\HPOFFICEJET" For Output As #1
rint #1, PrtStr
Close #1

This doesn't (no errors, basically nothing)
Dim PrtStr As String
PrtStr = "Printer Test Text llllllllllllllllllllllllllllllllllll"
Open "10.0.2.22" For Output As #1
Print #1, PrtStr
Close #1

Anyone have any ideas?

Thanks in advance.

Larry Mrazek
lmrazek at lcm-res.com




More information about the AccessD mailing list