Skip to content

Commit 40e95bf

Browse files
committed
readme: Test the Example
1 parent c7ddadf commit 40e95bf

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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
4151
AReport := TdxReport.Create(nil); // AReport: TdxReport;
4252
try
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
5767
This 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;
6271
AConnection := TdxBackendDatabaseSQLConnection.Create(nil);
6372
try
@@ -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
8896
AReport.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
107114
AStream := TMemoryStream.Create; // AStream: TMemoryStream;
108115
try
109116
// Export a report to PDF format and save it to a memory stream

0 commit comments

Comments
 (0)