• acViewPreview (Acess2000-VBA)

    Author
    Topic
    #366434

    Another novice question from the dinosaur:

    I would like to know how to have a report in acViewPreview mode open in the magnified view. My client does not want to have to use the mouse to click on the preview to get the image magnified.

    TIA
    ElDinosaurio
    confused

    Viewing 1 reply thread
    Author
    Replies
    • #568240

      DoCmd.OpenReport “ReportName”, acPreview
      DoCmd.RunCommand acCmdZoom150

      When you put in the RunCommand you can choose your magnifcation….

      hth,
      Jack

      • #568336

        Jack,

        Thanks, I will try this this morning. I only want it to open at 100% so this should work well for me

        ElD.

    • #568242

      What Jack has replied will work as long as you use one of the allowable specified Zoom levels.

      If you want to set the Zoom level to a custom percentage then you can use the following function:

      ‘ This function allows Report Custom Zoom level from 0% to 2500%
      Function PreviewAndZoomReport(ReportName As String, ZoomCoeff As Integer)
      On Error GoTo Err_PreviewAndZoomReport

      If Not (ZoomCoeff >= 0 And ZoomCoeff <= 2500) Then

      • #568337

        Ricky,

        Thanks for the code. I will try Jack’s first as I only need a simple fix, but I am keeping your function for future use.

        Thanks again

        ElD-

    Viewing 1 reply thread
    Reply To: acViewPreview (Acess2000-VBA)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: