Skip to content

Commit fde4352

Browse files
NickVolynkinAbadzhevdmitry-eliseev-devexpress
authored
Apply suggestions from code review
Co-authored-by: Vladimir Abadzhev <vladimira@devexpress.com> Co-authored-by: Dmitry Eliseev <81766219+dmitry-eliseev-devexpress@users.noreply.github.com>
1 parent 5f8f0ec commit fde4352

1 file changed

Lines changed: 9 additions & 10 deletions

File tree

README.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ See: [DevExpress Reports Prerequisites](https://docs.devexpress.com/VCL/405773/E
2424

2525
1. Open and build the Delphi project in the RAD Studio.
2626
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):
2828

2929
```console
30-
> PDFReportGenerator.exe OrderID=110077
30+
> PDFReportGenerator.exe OrderID=11077
3131

3232
Report saved to: ..\Order_11077.pdf
3333
```
@@ -44,7 +44,7 @@ An application requires a template report layout created in the [Report Designer
4444
You can [import a report layout from a REPX file](https://github.com/DevExpress-Examples/vcl-reports-store-layout-template-file)
4545
or [load a layout from a database](https://github.com/DevExpress-Examples/vcl-reports-store-layout-template-database).
4646

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.
4848

4949
**Delphi:**
5050
```pas
@@ -63,8 +63,7 @@ end;
6363

6464
### Step 2: Create a Database Connection
6565

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`.
6867

6968
```pas
7069
// AConnection: TdxBackendDatabaseSQLConnection;
@@ -87,7 +86,7 @@ For detailed information on data source management and supported database engine
8786

8887
A report layout may include one or more parameters.
8988
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.
9190

9291
To modify parameters, load them using the `LoadParametersFromReport` method and assign values to `Report.Parameters` list members as follows:
9392

@@ -102,20 +101,20 @@ for AReportParameter in AReport.Parameters do
102101
```
103102

104103

105-
### Step 4: Export and Save Report Content to a File
104+
### Step 4: Export Report Content to a File
106105

107106
Once a report layout is configured (including data binding and parameters),
108107
you can export reports in any supported format.
109108

110-
The current example exports a PDF report and saves it to a file:
109+
This example exports a report to a PDF file:
111110

112111
**Delphi:**
113112
```pas
114113
AStream := TMemoryStream.Create; // AStream: TMemoryStream;
115114
try
116-
// Export a report to PDF format and save it to a memory stream
115+
// Export a report to a memory stream in the PDF format
117116
AReport.ExportToPDF(AStream);
118-
// Write the content of the memory stream to a file
117+
// Save memory stream content to a file
119118
AStream.SaveToFile('Order_11077.pdf');
120119
finally
121120
AStream.Free;

0 commit comments

Comments
 (0)