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!

printing using common dialog

Status
Not open for further replies.

FiveRand

Programmer
Apr 30, 2003
5
ZA
Hi

I have got the common dialog and want to use it to print. I am not sure how to tell VB what printer has been selected by the user in the common dialog. Can anyone help me please.
 
the value u require my friend is:

Printer.DeviceName

when a printer is selected in the common dialog control, it automatically updates the current printer in the printer object, therefore if u wished to display the current printer in use something like:

text1.text = printer.DeviceName

would suffice, prior to the selection of the new printer obviously

hope that helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top