99
1010This example application stores [ DevExpress report layouts] [ TdxReport.Layout ] in a database.
1111The application allows users to create new layouts, modify existing layouts using the built-in Report Designer,
12- and save layout customizations to the data source.
12+ and save layout customization to the data source.
1313
1414
1515## Prerequisites
@@ -26,12 +26,12 @@ and save layout customizations to the data source.
2626 1 . Create a report layout using tools available within the UI.
2727 1 . Click the hamburger button, select the ** Save** option, and close the dialog.
28281 . Close and restart the app.
29- Click ** Design Report** or ** Preview Report** to load the saved report in the designer or [ Report Viewer] [ dx-report-viewer ] .
29+ Click ** Design Report** or ** Preview Report** to load the saved report in the [ Report Designer ] [ dx-report- designer] or [ Viewer] [ dx-report-viewer ] .
3030
3131## Implementation Details
3232
3333The example uses a DevExpress memory-based dataset as a report layout storage: [ TdxMemData] .
34- You can modify the application to use any [ TDataSet] descendant instead.
34+ You can modify the application to use any other [ TDataSet] descendant instead.
3535To review the data module implementation, see the following file: [ uData.pas] /[ uData.cpp] .
3636
3737The instructions assume that you start with a Delphi or C++Builder project that already includes
@@ -84,13 +84,13 @@ report name ([TdxReport.ReportName]) and layout ([TdxReport.Layout]):
8484``` pas
8585procedure TMainForm.LoadReportNameAndLayout();
8686begin
87- // Ensure that the dataset has at least one layout record or is in the process of creating a record :
87+ // Ensure that the dataset has at least one record or a new record is being created :
8888 if (DataModule1.mdLayouts.RecordCount = 0) and not (DataModule1.mdLayouts.State = dsInsert) then
8989 begin
9090 ShowMessage('The database is empty');
9191 Exit;
9292 end;
93- // Load the report name and layout from the database:
93+ // Load report name and layout from the database:
9494 dxReport1.ReportName := DataModule1.mdLayoutsName.AsString;
9595 dxReport1.Layout.Assign(DataModule1.mdLayoutsLayout);
9696end;
0 commit comments