Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Choose Destination Printer 1

Status
Not open for further replies.

keenanbr

Programmer
Oct 3, 2001
469
IE
How do you choose the destination printer From VB

Thanks in advance
 
You can select it fromn the list in the Printers object.

Code:
   Dim l_pr As Printer
   
   For Each l_pr In Printers
      Debug.print l_pr.DeviceName
   Next




zemp
 
There is a component in VB 6 called CommonDialog Box.
When using this component simple go

CommonDialog1.ShowPrinter

then the windows common dialog for choosing a printer appears and then you select the printer.
this component don't print anything, that you still need to do your self.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top