469,948 Members | 2,906 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,948 developers. It's quick & easy.

Sending plain text to a printer port

1,263 Expert 1GB
I am trying to print UPS shipping labels using a Zebra label printer. Apparently these printers have the label form programmed into the firmware and all I have to do is send a particular string of text to the port the printer is connected to (USB) and voila, the printer makes the label correctly.

How do I send unformatted text to a printer port using MS Access? I've got version 2003 in a Win XP environment.

Thanks!
Jim
Nov 5 '07 #1
4 8929
ADezii
8,800 Expert 8TB
I am trying to print UPS shipping labels using a Zebra label printer. Apparently these printers have the label form programmed into the firmware and all I have to do is send a particular string of text to the port the printer is connected to (USB) and voila, the printer makes the label correctly.

How do I send unformatted text to a printer port using MS Access? I've got version 2003 in a Win XP environment.

Thanks!
Jim
Try the following code to send unformatted Tetxt to a Local Printer at LPT1:
Expand|Select|Wrap|Line Numbers
  1. Open "LPT1" For Output As #1
  2. Print #1, "This is just a Test"
  3. Close #1
Nov 9 '07 #2
Try the following code to send unformatted Tetxt to a Local Printer at LPT1:
Expand|Select|Wrap|Line Numbers
  1. Open "LPT1" For Output As #1
  2. Print #1, "This is just a Test"
  3. Close #1
I think that should be "LPT1:" notice the colon.
Nov 11 '07 #3
ADezii
8,800 Expert 8TB
I think that should be "LPT1:" notice the colon.
Thanks for pointing that out to me.
Nov 11 '07 #4
FishVal
2,653 Expert 2GB
..... printer is connected to (USB) ......
I suppose that printer port is called "USBxxx" instead of "LPTx:". That should be checked in the printer properties.

Regards,
Fish.
Nov 11 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by notregister | last post: by
10 posts views Thread by sklett | last post: by
reply views Thread by Charles Crawford | last post: by
reply views Thread by =?Utf-8?B?Q2hhcmxpZQ==?= | last post: by
31 posts views Thread by happyse27 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.