TdxCustomReportControl.Language Property
Specifies the required language (for UI and report localization).
Declaration
property Language: string read; write;
Property Value
| Type | Description |
|---|---|
| string | The target culture name for UI and report localization. You can use any ISO-based culture identifier to select the corresponding available localization. |
Remarks
Use the Language property to switch between available languages for the TdxReportControl/Report Designer/Report Viewer UI and report layouts/generated reports.
Code Example: Switch Between Languages at Runtime
The code example in this section demonstrates three button OnClick event handlers that allow users to switch between the base language (English) and two localizations (Greek and Italian). Once the TdxCustomReportControl.Language property value is changed, Report Designer and Report Viewer dialogs use the corresponding localization when displayed the next time.
uses
dxReport.Control; // Declares the TdxReportControl class
// ...
procedure TMyForm.btnEnglishClick(Sender: TObject);
begin
dxReportControl1.Language := 'en-US';
end;
procedure TMyForm.btnGreekClick(Sender: TObject);
begin
dxReportControl1.Language := 'el-GR';
end;
procedure TMyForm.btnItalianClick(Sender: TObject);
begin
dxReportControl1.Language := 'it-IT';
end;
Default Value
The Language property’s default value is an empty string.
The default Language property value indicates the en-US culture.