Results 1 to 2 of 2

Thread: printer sum

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2006
    Posts
    19

    printer sum

    Hi all!
    I have an app that lists all printers on a netowrk, then prints the image to all the printers. Does anyone know how to make it so i can select how many times i want the image to print from the printers? Here is the code. Thanks!

    VB Code:
    1. Private Sub Command1_Click()
    2.  Dim P As Printer
    3.  
    4.   For Each P In Printers
    5.    List1.AddItem P.DeviceName
    6.   Next P
    7.  
    8. End Sub
    9.  
    10.  
    11. Private Sub Command2_Click()
    12.  Dim P As Printer
    13.  
    14.   'Print image to all.
    15.   For Each P In Printers
    16.     Set Printer = P
    17.     With Printer
    18.       Call Printer.PaintPicture(Picture1.Image, 100, 100)
    19.     End With
    20.   Next P
    21. End Sub
    22. ()

  2. #2

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