TdxCustomReportControl.Active Property
Specifies whether the TdxReportControl component displays content.
Declaration
property Active: Boolean read; write; default True;
Property Value
| Type | Default | Description |
|---|---|---|
| Boolean | True | Specifies if the Report Viewer control is active:
|
Remarks
You can set the Active property to False to hide report content.
Code Example: Filter Displayed Data Using a Query Parameter
The code example in this section populates the report template with data filtered using a parameter and displays the generated document in an individual TdxReportControl component embedded into an MDI Child form.
procedure TMainForm.btnUKCustomersClick(Sender: TObject);
var
AForm: TReportChildForm;
begin
AForm := TReportChildForm.Create(Self); // dxReportControl1.Active is disabled at design time
AForm.Caption := 'UK Customers';
// Apply the target filter criteria to data using the previously configured report parameter
AForm.dxReportControl1.Parameters['CountryReportParameter'].Value := 'UK';
AForm.dxReportControl1.Active := True; // Displays report content according to the filter criteria
end;

Default Value
The Active property’s default value is True.