Page setup

J

John

Hi

How can I change the printer page layout to landscape via code? Basically I
would like to avoid having the user set the layout every time manually.

Thanks

Regards
 
L

Larry Daugherty

Get volume 1 of "The Access [YourVersion] Developer's Handbook". The
latest version I have is 2000. In it, Chapter 10 is devoted to the
topic. The accompanying CD has the classes that you'll want to being
into your application. Then you can "talk" to your printer via new
classes programmatically.

Alternatively, you might spend some time with the Windows SDK and
solve your problem at the API level.

I think that getting the book would be quicker, more robust and less
expensive (~$50) than trying it on your own. At least two Access MVPs
have asserted that they recoup the cost of the book every time they
take it off the shelf and solve a problem. That's my evaluation as
well.

HTH
 
Top