RobGMiller said:
Access 2003:
Print window needs to open with the report in the center of a maximized
window and with a preset zoom setting.
Thanks
So what have you tried so far? (the archive?, the help file?)
just modify the code the wizard writes...
Private Sub cmdPreviewReport_Click()
On Error GoTo Err_cmdPreviewReport_Click
Dim stDocName As String
stDocName = "Needs by Location"
DoCmd.OpenReport stDocName, acPreview
DoCmd.Maximize
DoCmd.RunCommand acCmdZoom200
Exit_cmdPreviewReport_Click:
Exit Sub
Err_cmdPreviewReport_Click:
MsgBox Err.Description
Resume Exit_cmdPreviewReport_Click
End Sub
Not sure how to force it to be centered, though.