|
-
Nov 5th, 2001, 02:57 AM
#1
Thread Starter
Member
LPR/LPD Printing
Hi! Guys
Can Neone help me with LPR/LPD Printing through VB? all documentation, code, articals on exactly what LPR/LPD are and What they do and how to incorporate them via VB Code?
See if u guys can help
Regards
Amprat
-
Nov 6th, 2001, 01:04 PM
#2
lpr and lpd comes from unix and (lpr is) shipped with NT.
You have to use Shell function to print from inside VB.
Basically, the lpr command line depends on whose lpr code you are using.
This is BSD standard:
sample: lpr -P ipaddress filename
So for example:
Printer address is 10.19.99.127
file name is c:\myfolder\myfile.lis
In VB:
Code:
Sub lpr_it(str as string)
Shell "lpr -P 10.19.99.127 " & str,vbHide
End Sub
usage: lpr_it "c:\myfolder\myfile.lis"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|