Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Setting Zoom Percentage in Standard preview

edited February 2002 in General
Is there a way to preset the zoom percentage and/or the window size for the
standard preview window of RB Standard?

Thank you and have a nice day ...

Comments

  • edited February 2002
    Hi David

    see thread 'Tech Tip: Controlling the Built-in Previewer' in
    tech-tips.Format And Devices.


    ------------------------------------------------
    Tech Tip: Controlling the Built-in Previewer
    ------------------------------------------------

    You can control the built-in preview form via the
    Report.OnPreviewFormCreate event.

    For example the following code sets the Print Preview form to
    maximized and sets the Viewer ZoomSetting to 100%:

    procedure TForm1.ppReport1PreviewFormCreate(Sender: TObject);
    begin

    ppReport1.PreviewForm.WindowState := wsMaximized;
    TppViewer(ppReport1.PreviewForm.Viewer).ZoomSetting := zs100Percent;

    end;

    Note: You will need to add ppViewr to the uses clause of your unit,
    so that the ZoomSetting enumerated type is recognized by the
    compiler.
    --
    Tech Support mailto:support@digital-metaphors.com
    Digital Metaphors http://www.digital-metaphors.com


    regards,
    Chris Ueberall;

This discussion has been closed.