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 Preparemethod, or loaded from the .FPX file using theLoadPreparedmethod:if (Prepare())ShowPrepared(); | 
| void ShowPrepared(bool modal) | Shows a prepared report in the preview window. The modalparameter determines whether the preview should be shown modally. | 
| void ShowPrepared(bool modal, Form owner) | The same as the previous method. The ownerparameter determines a window that owns the preview window. | 
| void ShowPrepared(Form mdiParent) | The same as the previous method. The mdiParentparameter determines the main MDI window. |