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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select Paper Tray using Code

Status
Not open for further replies.

bJohnnyv

IS-IT--Management
Dec 5, 2000
10
0
0
US
I am using the Common Dialog box to allow users to select the output printer. I need to be able to force the output to tray #2. I cannot find the correct settings, does any one know?????.

This is what i found to date
With CommonDialog1
.Orientation = 2
.CancelError = True
.DialogTitle = "Printer Setup Sample"
.Flags = 0 ' &H8 Or &H4 Or &H80000 Or &H0
.ShowPrinter
' Get user-selected values from the dialog box
BeginPage = CommonDialog1.FromPage
EndPage = CommonDialog1.ToPage
NumCopies = CommonDialog1.Copies
' Orientation = CommonDialog1.Orientation
For i = 1 To NumCopies
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top