You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Open and build the Delphi project in the RAD Studio.
26
26
2. Start a console session and navigate to the _Delphi_ project directory.
27
-
3.Run the application an specify an order number (from 10248 to 11077) as the `OrderID` parameter:
27
+
3.When you run the program, specify the `OrderID` parameter (an order number between 10248 and 11077):
28
28
29
29
```console
30
-
> PDFReportGenerator.exe OrderID=110077
30
+
> PDFReportGenerator.exe OrderID=11077
31
31
32
32
Report saved to: ..\Order_11077.pdf
33
33
```
@@ -44,7 +44,7 @@ An application requires a template report layout created in the [Report Designer
44
44
You can [import a report layout from a REPX file](https://github.com/DevExpress-Examples/vcl-reports-store-layout-template-file)
45
45
or [load a layout from a database](https://github.com/DevExpress-Examples/vcl-reports-store-layout-template-database).
46
46
47
-
The current example imports a report layout from the `Order.repx` file.
47
+
This example imports a report layout from the `Order.repx` file.
48
48
49
49
**Delphi:**
50
50
```pas
@@ -63,8 +63,7 @@ end;
63
63
64
64
### Step 2: Create a Database Connection
65
65
66
-
A VCL Report requires a data source implemented as a database connection component.
67
-
This example project creates a SQL connection component with a built-in SQLite engine to load the Northwind sample database stored in `nwind.db`.
66
+
Create a database connection component to supply data to the report. This example project creates a SQL connection component with a built-in SQLite engine. The data source loads the Northwind sample database stored in `nwind.db`.
68
67
69
68
```pas
70
69
// AConnection: TdxBackendDatabaseSQLConnection;
@@ -87,7 +86,7 @@ For detailed information on data source management and supported database engine
87
86
88
87
A report layout may include one or more parameters.
89
88
Parameters allow you to modify database queries and, therefore, generate different reports based on the same report template and underlying data.
90
-
For example, `Order.repx` includes a single `OrderIDParameter`used to generate different reports based on customer orders specified by ID.
89
+
For example, `Order.repx` includes a single `OrderIDParameter`that filters data by order ID.
91
90
92
91
To modify parameters, load them using the `LoadParametersFromReport` method and assign values to `Report.Parameters` list members as follows:
93
92
@@ -102,20 +101,20 @@ for AReportParameter in AReport.Parameters do
102
101
```
103
102
104
103
105
-
### Step 4: Export and Save Report Content to a File
104
+
### Step 4: Export Report Content to a File
106
105
107
106
Once a report layout is configured (including data binding and parameters),
108
107
you can export reports in any supported format.
109
108
110
-
The current example exports a PDF report and saves it to a file:
0 commit comments