• Full-size Preview? (AXP 10.2627.2625)

    Author
    Topic
    #365290

    Is there an argument to OpenReport (or perhaps some other function) that would allow me to specify that a report opened in ‘preview’ would display at full size, rather than ‘full page’ view?

    Viewing 1 reply thread
    Author
    Replies
    • #563361

      In the On Open Event of the report :
      DoCmd.Maximize

      • #563420

        Merci!

      • #563488

        Maximize enlarges the entire window.

        What I _really_ want is the same size window, but full size display _in_ that window. As if I had applied the zoom mouse-pointer.

        • #563495

          Include the following line after your DoCmd.OpenReport statement:

          DoCmd.RunCommand acCmdZoom100

          Note that this will not work if you try to include it in your On Open event for the report. Docmd.Maximize does work either place… go figure.

          • #563501

            Thanks Tom, but I was too cocky, thinking I knew where these commands go

            The CmdButton on my form runs a macro that displays the PrintPreview for the report.

            Where do i write the two statements to execute sequentially so that the form is zoomed? confused

            • #563644

              Peter,

              If you’re using a macro for the On Click event for your Preview Report button on your form, then you just need to add a second action to that macro (after your OpenReport action). Select RunCommand as the action and Zoom100% as the command (it’s in the command drop-down list).

              Alternatively, if you’re using VBA code (by selecting “Event Procedure”) as the On Click event handler, then include the following code for your cmdButton_Click() procedure:

              DoCmd.OpenReport “ReportName”, acViewPreview
              DoCmd.RunCommand acCmdZoom100

              Hope this helps. Holler if you need more detail.

            • #563711

              Thanks –

              I got it to work by using the event procedure, and will probably stick with that in the future.

    • #563377

      You may want to place the DoCmd.Maximize stmt right after your DoCmd.OpenReport. Then you don’t have to put code in the report.

    Viewing 1 reply thread
    Reply To: Full-size Preview? (AXP 10.2627.2625)

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

    Your information: