VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Display printer list and print to selected printer.

by Aminuddin al Fathoni (1 Submission)
Category: Miscellaneous
Compatability: Visual Basic 4.0 (32-bit)
Difficulty: Unknown Difficulty
Originally Published: Fri 9th May 2003
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Display printer list and print to selected printer.

Rate Display printer list and print to selected printer.




'Display printer list
Private Sub Form_Load()
    For Each P In Printers
      List1.AddItem P.DeviceName
    Next
End Sub

'Prin test to selected printer
Private Sub Command1_Click()
    Set Printer = Printers(List1.ListIndex)
    
    Printer.Print "Print"
    Printer.EndDoc
End Sub


Download this snippet    Add to My Saved Code

Display printer list and print to selected printer. Comments

No comments have been posted about Display printer list and print to selected printer.. Why not be the first to post a comment about Display printer list and print to selected printer..

Post your comment

Subject:
Message:
0/1000 characters