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!

about changing Printer Setting

Status
Not open for further replies.

MCH

Programmer
Dec 11, 2000
7
0
0
HK
Dim x As Printer

For Each x in Printers
If x.DeviceName = "Laser Jet" Then
x.Orientation = vbPRORLandscape
Exit For
End If
Next

This code cause "Orientation property is read-only" error?
How to change specified printer's setting?

Thanks
mch
 
try this

Dim x As Printer

For Each x in Printers
If x.DeviceName = "Laser Jet" Then
Set Printer=x
Printer.Orientation=vbPRORLandscape
Exit For
End If
Next

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top