piReportLanguage - cDRReport¶
Methods - Properties - Events
Type¶
Default¶
0 (LANG_NEUTRAL)
Arguments¶
None
Description¶
The language of the report can be set to achieve the translation of error messages and the contents of special fields such as "Page N of M". The language ID is specified as standard in the Windows API (see MSDN Documentation).
The report ID argument currently has no meaning and can be left blank.
This property cannot be used before the report OCX object is initialized. The COM object creation is performed as part of the OpenReport method if it has not been done beforehand.
A typical location to set this property is the 'OnCreate' event, as it cannot be set before the report object is instantiated.
Setting a language requires the language strings to be present in Language.db.
DataFlex Framework usage¶
- Web
- Windows
- FlexTron
Sample¶
Object oReport is a cDRReport
Set psReportName to 'MyReport.dr'
Procedure OnCreate
Set piReportLanguage '' to LANG_GERMAN
End_Procedure
End_Object
Object oRunReportButton is a Button
Set Label to 'Run Report'
Procedure OnClick
Send RunReport of oReport
End_Procedure
End_Object