How to change page layout programmatically

  • Thread starter Thread starter Dom
  • Start date Start date
D

Dom

Hello everyone,

I would like to know how does one goes about changing
the margins, and page orientation programmatically ?

Thank you in advance.
 
Dom:

To change margins and things like columns, you use a property called prtMip;
for page orientation for any version other than Access Xp you use a property
called prtDevMode. These are a bit technical to use (there are examples in
the help file but not much explaination). In Xp you can get at the page
orientation through the Printer propery; but in each case you've go to open
the report in design mode to do this.

If you need some functions to manipulate those items, stop by our web and
look in the Code and Design tips area under Reports and you'll find two
different tips with the code you need (you could merge the code into one
function).
 
Back
Top