Skip to content

Commit f807531

Browse files
committed
draft
1 parent 267c1ae commit f807531

4 files changed

Lines changed: 51 additions & 10 deletions

File tree

CPB/uMainForm.dfm

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ object MainForm: TMainForm
2525
Width = 377
2626
Height = 25
2727
Caption = 'Design Report'
28-
SpeedButtonOptions.CanBeFocused = False
2928
TabOrder = 1
3029
OnClick = btnDesignClick
3130
end

Delphi/ReportTemplate.res

151 KB
Binary file not shown.

Delphi/uMainForm.dfm

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ object MainForm: TMainForm
2525
Width = 377
2626
Height = 25
2727
Caption = 'Design Report'
28-
SpeedButtonOptions.CanBeFocused = False
2928
TabOrder = 1
3029
OnClick = btnDesignClick
3130
end

README.md

Lines changed: 51 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,64 @@
44
[![](https://img.shields.io/badge/📖_How_to_use_DevExpress_Examples-e9f6fc?style=flat-square)](https://docs.devexpress.com/GeneralInformation/403183)
55
[![](https://img.shields.io/badge/💬_Leave_Feedback-feecdd?style=flat-square)](#does-this-example-address-your-development-requirementsobjectives)
66
<!-- default badges end -->
7-
# DevExpress VCL Reports - Store Report Layouts in a Database
87

9-
This example stores a [report layout](https://docs.devexpress.com/VCL/dxReport.TdxReport.Layout) (XML-based template) in the BLOB field of a memory-based dataset ([TdxMemData](https://docs.devexpress.com/VCL/dxmdaset.TdxMemData) inherited from the [TDataSet](https://docwiki.embarcadero.com/Libraries/Athens/en/Data.DB.TDataSet) class shipped with the standard VCL library).
8+
# DevExpress Reports for Delphi/C++Builder – Store Report Layouts in a Database
109

11-
## Testing the example
10+
This example application stores [DevExpress report layouts][TdxReport.Layout] in a database.
11+
The application allows users to create and save report layouts, modify existing layouts, and open layouts in Report Designer/Viewer.
12+
13+
14+
The example uses a memory-based dataset as the database used to store layouts.
15+
The dataset is based on the [TdxMemData] component from the DevExpress library,
16+
inherited from the [TDataSet] class shipped with the standard VCL library.
17+
18+
## Test the Example
1219

1320
* Run the sample app and click **New Report** to create an empty database record.
14-
* Click **Show Designer** to display the [Report Designer](https://docs.devexpress.com/XtraReports/119176/web-reporting/web-end-user-report-designer) dialog.
21+
* Click **Show Designer** to display the [Report Designer][dx-report-designer] dialog.
1522
* Create a report layout using tools available within the UI.
1623
* Click the hamburger button, select the **Save** option, and close the dialog.
17-
* Close the app. The [TdxMemData](https://docs.devexpress.com/VCL/dxmdaset.TdxMemData) component will store layout data between sessions.
18-
* Run the sample app again. Click **View Designer** to load the saved report layout, or **View Report** to preview a layout-based report in the [Report Viewer](https://docs.devexpress.com/XtraReports/401850/web-reporting/web-document-viewer) dialog.
24+
* Close the app. The [TdxMemData] component will store layout data between sessions.
25+
* Run the sample app again. Click **View Designer** to load the saved report layout, or **View Report** to preview a layout-based report in the [Report Viewer][dx-report-viewer] dialog.
1926

2027
## Documentation
2128

22-
* [TdxReport.Layout Property](https://docs.devexpress.com/VCL/dxReport.TdxReport.Layout)
23-
* [TdxBackendDataSetJSONConnection Component](https://docs.devexpress.com/VCL/dxBackend.ConnectionString.JSON.DataSet.TdxBackendDataSetJSONConnection)
29+
- [Introduction to VCL Reports][reports-intro]
30+
- [Tutorial: Create a table report using the Report Wizard][report-wizard]
31+
- [Store report layouts in REPX files at design-time][reports-design-time-store]
32+
33+
- [Use SQLite as a data source for reports (as demonstrated in the current example)][sqlite-data-source]
34+
- API reference:
35+
- [TdxReport.Layout]
36+
- [TdxBackendDatabaseSQLConnection] (used to supply data to reports in the current example)
37+
- [TdxBackendDataSetJSONConnection] (used to store report layouts in the current example)
38+
- [TdxMemData] (used to store layout data between sessions)
39+
40+
<!-- documentation links -->
41+
[reports-intro]: https://docs.devexpress.com/VCL/405469/ExpressReports/vcl-reports
42+
[report-wizard]: https://docs.devexpress.com/VCL/405760/ExpressReports/getting-started/create-table-report-using-report-wizard
43+
[reports-design-time-store]: https://docs.devexpress.com/VCL/dxReport.TdxReport.Layout#string-list-editor
44+
[sqlite-data-source]: https://docs.devexpress.com/VCL/405750/ExpressCrossPlatformLibrary/vcl-backend/database-engines/vcl-backend-sqlite-support
45+
[dx-report-viewer]: https://docs.devexpress.com/XtraReports/401850/web-reporting/web-document-viewer
46+
[dx-report-designer]: https://docs.devexpress.com/XtraReports/119176/web-reporting/web-end-user-report-designer
47+
48+
49+
<!-- reference links -->
50+
[TdxReport.Layout]: https://docs.devexpress.com/VCL/dxReport.TdxReport.Layout
51+
[TdxBackendDatabaseSQLConnection]: https://docs.devexpress.com/VCL/dxBackend.ConnectionString.SQL.TdxBackendDatabaseSQLConnection
52+
[TdxBackendDataSetJSONConnection]: https://docs.devexpress.com/VCL/dxBackend.ConnectionString.JSON.DataSet.TdxBackendDataSetJSONConnection
53+
[TdxMemData]: https://docs.devexpress.com/VCL/dxmdaset.TdxMemData
54+
[TDataSet]: https://docwiki.embarcadero.com/Libraries/Athens/en/Data.DB.TDataSet
55+
56+
<!-- external documentation links -->
57+
<!-- in-repository links -->
58+
59+
## More Examples
60+
61+
- [Store report layouts in REPX files (example application)][file-example]
62+
63+
[file-example]: https://github.com/DevExpress-Examples/vcl-reports-store-layout-template-file
64+
2465
<!-- feedback -->
2566
## Does This Example Address Your Development Requirements/Objectives?
2667

@@ -31,3 +72,5 @@ This example stores a [report layout](https://docs.devexpress.com/VCL/dxReport.T
3172

3273

3374

75+
76+

0 commit comments

Comments
 (0)