Search Results for

    Show / Hide Table of Contents

    Running a report

    To run a report, use one of the following methods of the Report object:

    Method Description
    void Show() Runs a report and shows it in the preview window.
    This method is equal to:
    if (Prepare())
    ShowPrepared();
    bool Prepare() Runs a report. If the report was prepared successfully, returns true. After this method, you need to call one of the following methods: ShowPrepared, PrintPrepared, SavePrepared, Export:
    if (Prepare())
    ShowPrepared();
    bool Prepare(bool append) Runs a report. If the append parameter is set to true, the prepared report will be added to the existing one.
    So you can build several reports and display them in the preview as one report:
    report1.Load("report1.frx");
    report1.Prepare();
    report1.Load("report2.frx");
    report1.Prepare(true);
    report.ShowPrepared();
    void ShowPrepared() Shows a prepared report in the preview window. The report must be either prepared using the Prepare method, or loaded from the .FPX file using the LoadPrepared method:
    if (Prepare())
    ShowPrepared();
    void ShowPrepared(bool modal) Shows a prepared report in the preview window. The modal parameter determines whether the preview should be shown modally.
    void ShowPrepared(bool modal, Form owner) The same as the previous method. The owner parameter determines a window that owns the preview window.
    void ShowPrepared(Form mdiParent) The same as the previous method. The mdiParent parameter determines the main MDI window.
    Back to top © 1998-2025 Copyright Fast Reports Inc.