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!

Rotating Image/Form for Print or Printing Landscape

Status
Not open for further replies.

JeremyM

Programmer
Nov 10, 2000
33
0
0
US
I have a form that contains only a few images. I need to print the form as landscape or rotate it so that it "seems" to be landscape. Does anyone have a suggestion on how to do this?
 
Dim mPrinter As Printer
Set mPrinter = Printer 'default printer
mPrinter.Orientation = vbPRORLandscape
Me.PrintForm

scarfhead
 
It gives me an error on the print. If I dont change to landscape, it prints with no errors. If I change it to landscape, I get a run time error. The ONLY difference is the landscape.

Thanks,

Jeremy
 
dunno why. I copied that code straight out of my app.
Maybe a limitation of your printer?
(ask a programmer, it's always a hardware problem.)

I tried it in a test app without errors.
I'm printing to an HP 4 LaserJet over a network.
It is set as my default printer, which is what mPrinter points to.

scarfhead

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top