Results 1 to 2 of 2

Thread: LPR/LPD Printing

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2001
    Location
    New Delhi
    Posts
    34

    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
    **** Happens!

  2. #2
    jim mcnamara
    Guest
    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
  •  



Click Here to Expand Forum to Full Width