This example allows you to select individual dataset records in a DevExpress VCL Data Grid control and display selected records in a built report using the Report Viewer dialog. Source data is stored in a memory-based dataset (TdxMemData inherited from the TDataSet class shipped with the standard VCL library).
DevExpress Reports Prerequisites
Run the sample app and check any records in a table:
Click the Preview Report button to display a report containing all selected records in the Report Viewer dialog.
- Introduction to DevExpress Reports for Delphi/C++Builder
- Tutorial: Create a table report using the Report Wizard
- Use JSON as a data source for dashboards (as demonstrated in the current example)
- Store report layouts in REPX files at design-time
- API reference:
- TdxReport
- TdxReport.ReportName (internal report name that is not included in the layout)
- TdxReport.Layout (an XML-based layout template that can be stored in a BLOB data field)
- TdxReport.ShowViewer
- TdxMemData (DevExpress in-memory dataset implementation)
- TDataSet (contains generic database connection methods)
- TdxBackendDataSetJSONConnection (supplies data to reports)
- Store report layouts in REPX files
- Store report layouts in a Database
- Generate reports in a backend / service application
- Localize Report Viewer and Report Designer dialogs
(you will be redirected to DevExpress.com to submit your response)

