|
1 | | -# DevExpress VCL Reports - Store report layouts in a database |
| 1 | +<!-- default badges list --> |
| 2 | +[](https://docs.devexpress.com/GeneralInformation/403183) |
| 3 | +[](#does-this-example-address-your-development-requirementsobjectives) |
| 4 | +<!-- default badges end --> |
| 5 | +# DevExpress VCL Reports - Store report layouts in a database |
| 6 | + |
| 7 | +This example demonstrates how to store a [report layout](https://docs.devexpress.com/VCL/dxReport.TdxReport.Layout) (XML-based template) in a dataset. |
| 8 | + |
| 9 | +<img width="2601" height="1466" alt="vcl-reports-tdxreport-template-designer@2x" src="https://github.com/user-attachments/assets/b1896095-f743-477e-b1c2-b5f8771f0d80" /> |
| 10 | + |
| 11 | +The example stores a saved report layout in a BLOB field of a memory-based dataset component ([TdxMemData](https://docs.devexpress.com/VCL/dxmdaset.TdxMemData) inherited from the standard [TDataSet](https://docwiki.embarcadero.com/Libraries/Athens/en/Data.DB.TDataSet) class shipped with the VCL library). |
| 12 | + |
| 13 | +## Testing the example |
| 14 | + |
| 15 | +* Click **New Report** to create an empty database record. |
| 16 | +* Click **Show Designer** to display the [Report Designer](https://docs.devexpress.com/XtraReports/119176/web-reporting/web-end-user-report-designer) dialog. |
| 17 | +* Create a report layout using any tools available in the UI. |
| 18 | +* Click the hamburger button and select the **Save** option and close the dialog. |
| 19 | +* Click **View Designer** or **View Report** to load the saved report layout or preview a layout-based report in the [Report Viewer](https://docs.devexpress.com/XtraReports/401850/web-reporting/web-document-viewer) dialog. |
| 20 | + |
| 21 | +## Documentation |
| 22 | + |
| 23 | +* [TdxReport.Layout Property](https://docs.devexpress.com/VCL/dxReport.TdxReport.Layout) |
| 24 | +* [TdxReportDataSetJSONConnection Component](https://docs.devexpress.com/VCL/dxReport.ConnectionString.JSON.DB.TdxReportDataSetJSONConnection) |
| 25 | +<!-- feedback --> |
| 26 | +## Does this example address your development requirements/objectives? |
2 | 27 |
|
3 | | -This example demonstrates how to store a [report layout](https://docs.devexpress.com/VCL/dxReport.TdxReport.Layout) (XML-based template) in a dataset. |
| 28 | +[<img src="https://www.devexpress.com/support/examples/i/yes-button.svg"/>](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=vcl-reports-store-layout-template-database&~~~was_helpful=yes) [<img src="https://www.devexpress.com/support/examples/i/no-button.svg"/>](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=vcl-reports-store-layout-template-database&~~~was_helpful=no) |
4 | 29 |
|
5 | | -<img width="2601" height="1466" alt="vcl-reports-tdxreport-template-designer@2x" src="https://github.com/user-attachments/assets/b1896095-f743-477e-b1c2-b5f8771f0d80" /> |
6 | | - |
7 | | -The example stores a saved report layout in a BLOB field of a memory-based dataset component ([TdxMemData](https://docs.devexpress.com/VCL/dxmdaset.TdxMemData) inherited from the standard [TDataSet](https://docwiki.embarcadero.com/Libraries/Athens/en/Data.DB.TDataSet) class shipped with the VCL library). |
8 | | - |
9 | | -## Testing the example |
10 | | - |
11 | | -* Click **New Report** to create an empty database record. |
12 | | -* Click **Show Designer** to display the [Report Designer](https://docs.devexpress.com/XtraReports/119176/web-reporting/web-end-user-report-designer) dialog. |
13 | | -* Create a report layout using any tools available in the UI. |
14 | | -* Click the hamburger button and select the **Save** option and close the dialog. |
15 | | -* Click **View Designer** or **View Report** to load the saved report layout or preview a layout-based report in the [Report Viewer](https://docs.devexpress.com/XtraReports/401850/web-reporting/web-document-viewer) dialog. |
16 | | - |
17 | | -## Documentation |
18 | | - |
19 | | -* [TdxReport.Layout Property](https://docs.devexpress.com/VCL/dxReport.TdxReport.Layout) |
20 | | -* [TdxReportDataSetJSONConnection Component](https://docs.devexpress.com/VCL/dxReport.ConnectionString.JSON.DB.TdxReportDataSetJSONConnection) |
| 30 | +(you will be redirected to DevExpress.com to submit your response) |
| 31 | +<!-- feedback end --> |
0 commit comments