Search Results for

    Show / Hide Table of Contents

    Previewing a report

    It is possible to display a report in the preview window in two ways: either by calling the TfrxReport.ShowReport method (described above), or with the help of the TfrxReport.ShowPreparedReport method. In the second case, the report construction is not performed, but a finished report is displayed. That means, that you should either construct it beforehand with the help of the PrepareReport method, or load a previously constructed report from the file (see Loading and saving a finished report).

    Example:

    Pascal:

    if frxReport1.PrepareReport then
      frxReport1.ShowPreparedReport;
    

    C++:

    if(frxReport1->PrepareReport(true))
      frxReport1->ShowPreparedReport();
    

    In this case, report construction is finished first, and after that it is displayed in the preview window. Construction of a large report can take a lot of time, and that is why it is better to use the ShowReport anisochronous method, than the PrepareReport/ShowPreparedReport one. One can assign preview settings by default via the TfrxReport.PreviewOptions property.

    Back to top © Copyright Fast Reports Inc.