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

Giving feedback while accessing data and creating report

edited December 2001 in General
Hi,
How can I give feedback to the user while reportbuilder is accessing the
data and creating the report. The problem is that while the report is being
created the screen apears frozen. I'd like to have the report preview screen
minimized until the report is ready to be displayed. That way I could have
my own screen displayed until then with some processmessages etc. so it
dosen't apear frozen, and it looks much more professinal.
Thanks in advance for any ideas.
Jack

Comments

  • edited December 2001
    You could use the Report.OnPreviewFormCreate event to create your window to
    show the user a message that the data is being accessed and that the report
    is generating.

    ------------------------------------------------
    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.



    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.