Set Print Options

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi.

I have some code to open a query and want to print it out. I know the
command to print (DoCmd.PrintOut) but need to change the paper orientation to
Landscape prior to printing.

Can this be done in code?

Cheers,
Steve.
 
Further to my original post. I am still no closer to sorting this out.

Could it have something to do with the Printers collection?
 
Hi Steve,

To change the orientation to landscape you need the following line of code
before your DoCmd.PrintOut section:

Printer.Orientation = acPRORLandscape

For portrait, the line of code is:

Printer.Orientation = acPRORPortrait

Hope this helps,

Stuart
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top