Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting PrtDevMode in code

Status
Not open for further replies.

Shep

Programmer
Sep 11, 2000
29
GB
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)

Regards,

Shep

 
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
dposton@universal1.com

Ask me how Bar-codes can help you be more productive.
 
DougP,
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.
Cheers

Shep
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top