DefaultCSVExportOptions - cDRReport¶
Methods - Properties - Events
Obsolete¶
Default values for CSV export are no longer code inside the cDRReport class but retrieved from the OCX. While you can still use the function and the struct it the usage is obsolete.
Method Type¶
Function
Arguments¶
None
Returns¶
Description¶
This function can be used to return a default set of CSV export options.
After retrieving the default set of options, one or more members can be changed.
The default initializes the members to:
| Member | Value |
|---|---|
cFieldDelimiter |
Comma (,) |
cFieldSeparator |
Double quote (") |
bExportPageSections |
False |
bExportReportSections |
False |
bExportGroupSections |
False |
bAllPages |
True |
iPage |
1 |
DataFlex Framework usage¶
- Web
- Windows
- FlexTron
Sample¶
Object oReport is a cDRReport
Set psReportName to 'MyReport.dr'
End_Object
Object oExportReportButton is a Button
Set Label to 'Export Report'
Procedure OnClick
String sReportId
drCSVExportOptions CSVExportOptions
Get OpenReport of oReport to sReportId
If (sReportId <> '') Begin
Get DefaultCSVExportOptions of oReport to CSVExportOptions
Set pCSVExportOptions of oReport to CSVExportOptions
Send ExportReport of oReport C_drCSV 'MyReport.csv'
Send CloseReport of oReport sReportId
End
End_Procedure
End_Object