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 sizbut 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 box

Status
Not open for further replies.

DougP

MIS
Dec 13, 1999
5,985
US
I have used the Common Dialog box in VB and got it to work OK.
I need to use in Access.
I added it to the form and it comes up OK.
And I can choose a printer.
But I need to know the name of the printer choosen

Any ideas which property this is in?

here is my code so far

Dim y As Printer
For Each y In Printers
If y.defaultprinter = True Then
' Set printer as system default.
Set Printer = y
' Stop looking for a printer.
Exit For
End If
Next
DougP, MCP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top