B
bevnz
Hi All
I have a problem with reports that were designed in
landscape reverting back to portrait in preview and also
when they are printed. The landscape reports page setup
was set to landscape with all margins set at the time of
design. The properties sections of each report have been
set to CanGrow = "Yes", CanShrink = "Yes".
I want to add vba code that will change the orientation to
landscape before the PrintPreview and/or Print command
line executes. I know how to do this in vb but I've had no
luck in vba.
Does anyone know what code is needed?
Here's what I'm using;
Dim stDocName As String
DoCmd.MoveSize 0, 0, 0, 0
stDocName = "Closed Estimator"
DoCmd.OpenReport stDocName, acPreview
The MoveSize line just shrinks the dialog box before the
report preview.
Thanks for any direction.
Bevnz
I have a problem with reports that were designed in
landscape reverting back to portrait in preview and also
when they are printed. The landscape reports page setup
was set to landscape with all margins set at the time of
design. The properties sections of each report have been
set to CanGrow = "Yes", CanShrink = "Yes".
I want to add vba code that will change the orientation to
landscape before the PrintPreview and/or Print command
line executes. I know how to do this in vb but I've had no
luck in vba.
Does anyone know what code is needed?
Here's what I'm using;
Dim stDocName As String
DoCmd.MoveSize 0, 0, 0, 0
stDocName = "Closed Estimator"
DoCmd.OpenReport stDocName, acPreview
The MoveSize line just shrinks the dialog box before the
report preview.
Thanks for any direction.
Bevnz