@@ -20,6 +20,17 @@ See: [DevExpress Reports Prerequisites](https://docs.devexpress.com/VCL/405773/E
2020> [ !Note]
2121> An application using VCL Reports in headless mode does not require the ` WebView2Loader.dll ` library (unlike GUI applications).
2222
23+ ## Test the Example
24+
25+ 1 . Open and build the project in RAD Studio.
26+ 2 . Start a console session and navigate to the project directory.
27+ 3 . Run the application an specify an order number as the ` OrderID ` parameter:
28+
29+ ``` console
30+ > PDFReportGenerator.exe OrderID=110077
31+
32+ Report saved to: ..\Order_11077.pdf
33+ ```
2334
2435## Implementation Details
2536
@@ -37,7 +48,6 @@ The current example imports a report layout from the `Order.repx` file.
3748
3849**Delphi:**
3950```pas
40- // Step 1: Create a report instance and load the report layout
4151AReport := TdxReport.Create(nil); // AReport: TdxReport;
4252try
4353 // Set an internal report name (does not affect the exported content)
@@ -57,7 +67,6 @@ A VCL Report requires a data source implemented as a database connection compone
5767This example project creates a SQL connection component with a built-in SQLite engine to load the Northwind sample database stored in ` nwind.db ` .
5868
5969``` pas
60- // Step 2: Create a database connection
6170// AConnection: TdxBackendDatabaseSQLConnection;
6271AConnection := TdxBackendDatabaseSQLConnection.Create(nil);
6372try
@@ -84,7 +93,6 @@ To modify parameters, load them using the `LoadParametersFromReport` method and
8493
8594** Delphi:**
8695``` pas
87- // Step 3: Define Report Parameter Values
8896AReport.LoadParametersFromReport;
8997// Set the "OrderIdParameter" value in the report layout
9098// AReportParameter: TdxReportParameter;
@@ -103,7 +111,6 @@ The current example exports a PDF report and saves it to a file:
103111
104112** Delphi:**
105113``` pas
106- // Step 4: Export a report to PDF
107114AStream := TMemoryStream.Create; // AStream: TMemoryStream;
108115try
109116 // Export a report to PDF format and save it to a memory stream
0 commit comments