Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Setting PrtDevMode in code

Setting PrtDevMode in code

Setting PrtDevMode in code

I have an Access 2000 application which I would like my users to be able to take screen prints of by using Ctrl+P.
(done using AutoKeys macro + Docmd.PrintOut on the Screen.ActiveForm)
My problem is that for my screen prints to fit on a sheet of A4 they need to be printed in Landscape mode and Access has a nasty habit of persistently resetting the forms orientation to Portrait every time I go in to design mode.
I have some code to loop thru all forms to set orientation dynamically but it only works if there is already a PrtDevMode property for the form - which seems to keep disappearing (possibly due to SourceSafe's intervention?)
Does anyone know...
a) why the PrtDevMode keeps disappearing
b) is it feasible to create a PrtDevMode property for a form (the help info suggests that you shouldn't really be playing around with this sort of stuff)



RE: Setting PrtDevMode in code

Here's something to try for you landscpae portrait problem
Create a new printer using the same print device and Print driver but change it to landscape and save this in the document defaults.
So you will have a new printer icon in your printers folder.
Use this one for your screen capture.

DougP, MCP
 Ask me how Bar-codes can help you be more productive.

RE: Setting PrtDevMode in code

Thanks for replying. Nice idea + I'll probably use it to create system documentation but unfortunately my customer has several different printers in use at several sites so I always want to use the default printer rather than a specific one + I can't expect them to change their defaults for all prints to landscape just to suit my app.


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close