[AccessD] Simple Print Preview Question

Jim Lawrence accessd at shaw.ca
Mon Aug 30 16:53:40 CDT 2010


Hi Bud:

There might be a way but I have never found one... If the report is saved at
a maximum size it will most likely expand to the full screen next time it is
called in an application but not always.

You can put the two second commands in the report onopen event but then you
will get a flash and you may not want that. I would stick code to display a
full screen background, turn off the repaint, use your method to expand the
report, and then repaint.

HTH
Jim

  

-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bud Goss
Sent: Monday, August 30, 2010 2:07 PM
To: Accessd
Subject: [AccessD] Simple Print Preview Question

When I do a print preview my report is displayed at 50% magnification. If I
left click on the report it changes to 100 %. If I left click on the report
again, it goes back to 50 %. 
 
I can change this behavior by using the following code
 
DoCmd.OpenReport stDocName, acPreview
DoCmd.Maximize
DoCmd.RunCommand acCmdZoom100
 
With this code, the report is initially displayed with 100 % magnification.
 
Is there a way to set a database property to get 100% magnification
initially without using the:
DoCmd.Maximize
DoCmd.RunCommand acCmdZoom100
 
statements every time I request a print preview?
-- 
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com





More information about the AccessD mailing list