View Full Version : Open Report in Layout View


woolla01
10-19-2004, 04:17 PM
Hi :o
In report design mode you can click on View - Layout Preview
This gives me the desired report appearing maxmised 100% zoom

However when you run the you add a button toa form and either via the wizard or manually you can only open the report in Print Preview mode.
The report then appears in middle of screen @ 75% zoom and not utilising the full screen

example of code on buttonDoCmd.OpenReport stDocName, acViewPreview

how can i make the report utilise the full screen and default to 100% zoom

regards

ghudson
10-22-2004, 12:20 PM
Not sure which view you prefer but one of these should set you on the right path...

DoCmd.OpenReport "YourReportName", acViewPreview
DoCmd.Maximize
DoCmd.RunCommand acCmdPreviewOnePage
DoCmd.OpenReport "YourReportName", acViewPreview
DoCmd.Maximize
DoCmd.RunCommand acCmdZoom100