Printer Settings

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

Guest

I would like to be able to change the printer settings from code, e.g from
"Portrait" to "Landscape". I'm working with some code which opens a query and
I want to print the query results directly with no user input.

My code is as follows:

docmd.openquery acquery, "qryName"
docmd.printout acprintall, , , acdraft

The result typically does not fit on a regular page without changing the
margin settings or orientation. I would like to do so before printing so that
the output is not dependent upon the default print settings.
 
I might suggest you build a report from your query, and preconfigure the page
setup on the report, that way, you don't have to go through changing setup
each time.

Rosco
 

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