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
Printable View
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
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:
usage: lpr_it "c:\myfolder\myfile.lis"Code:Sub lpr_it(str as string)
Shell "lpr -P 10.19.99.127 " & str,vbHide
End Sub