|
4 | 4 | [](#does-this-example-address-your-development-requirementsobjectives) |
5 | 5 | <!-- default badges end --> |
6 | 6 |
|
7 | | -# DevExpress VCL Reports—Generate a PDF Report Using a non-GUI application |
| 7 | +# DevExpress VCL Reports—Generate a PDF Report Using a Headless (non-GUI) application |
8 | 8 |
|
9 | | -This command line application uses the DevExpress VCL Reports components to generate a PDF report. |
10 | | -The application obtains data from a database using a SQL query that includes report layout parameters. |
| 9 | +This example uses the DevExpress VCL Reports components to generate a PDF report using a command line application. |
| 10 | +The example demonstrates the capabilities of VCL Reports for producing reports in backend applications, webservers, or command line applications, all without the need for a GUI. |
11 | 11 |
|
12 | 12 | The example includes projects for both [Delphi](./Delphi) and [C++Builder](./CPB). |
13 | 13 |
|
14 | 14 | >  |
15 | 15 |
|
16 | 16 | ## Prerequisites |
17 | 17 |
|
18 | | -See: [DevExpress Reports Prerequisites](https://docs.devexpress.com/VCL/405768/ExpressCrossPlatformLibrary/general-recommendations/vcl-web-view-2-based-app-deployment#vcl-reportsdashboards-prerequisites) |
| 18 | +See: [DevExpress Reports Prerequisites](https://docs.devexpress.com/VCL/405773/ExpressCrossPlatformLibrary/vcl-backend/reports-dashboards-app-deployment#vcl-reportsdashboards-prerequisites) |
19 | 19 |
|
| 20 | +> [!Note] |
| 21 | +> An application using VCL Reports in headless mode does not require the `WebView2Loader.dll` library (unlike GUI applications). |
20 | 22 |
|
21 | 23 | ## Implementation Details |
22 | 24 |
|
23 | | -By following the steps outlined in this example, you'll create a standalone command line application using the |
24 | | -[DevExpress VCL ](https://docs.devexpress.com/VCL/405469/ExpressReports/vcl-reports). |
| 25 | +By following the steps outlined in this example, you'll create an application that produce the |
| 26 | +[DevExpress VCL Reports](https://docs.devexpress.com/VCL/405469/ExpressReports/vcl-reports). |
25 | 27 |
|
26 | 28 | ### Prepare a Template Report Layout |
27 | 29 |
|
28 | 30 | An application needs a template report layout, created in the [Report Designer](https://docs.devexpress.com/VCL/405469/ExpressReports/vcl-reports). |
29 | | -You can [store a report layout in a `.repx` file](https://github.com/DevExpress-Examples/vcl-reports-store-layout-template-file) |
| 31 | + |
| 32 | +You can [store a report layout in a REPX file](https://github.com/DevExpress-Examples/vcl-reports-store-layout-template-file) |
30 | 33 | or [in a database](https://github.com/DevExpress-Examples/vcl-reports-store-layout-template-database). |
31 | 34 |
|
32 | | -This example loads a report layout from the [`Layout.repx`](./Layout.repx) file. |
| 35 | +This example loads a report layout from the [`Order.repx`](./Order.repx) file. |
33 | 36 |
|
34 | 37 | ### |
35 | 38 |
|
| 39 | + |
| 40 | +## Files to Review |
| 41 | + |
| 42 | +- [`Delphi/PDFReportGenerator.dpr`](./Delphi/PDFReportGenerator.dpr) generates a report in headless (non-GUI) mode. |
| 43 | +- [`Order.repx`](./Order.repx) contains a report layout which produces a customer order report. |
| 44 | + You view and edit this file using the [file storage example application](https://github.com/DevExpress-Examples/vcl-reports-store-layout-template-file). |
| 45 | +- [`nwind.db`](./nwind.db) contains the Northwind example database. |
| 46 | + |
36 | 47 | ## Documentation and Examples |
37 | 48 |
|
38 | 49 | - [Documentation: DevExpress VCL Reports](https://docs.devexpress.com/VCL/405469/ExpressReports/vcl-reports) |
39 | 50 | - [Example: Store Report Layouts within Text Files](https://github.com/DevExpress-Examples/vcl-reports-store-layout-template-file) |
40 | 51 | - [Example: Store Report Layouts in a Database](https://github.com/DevExpress-Examples/vcl-reports-store-layout-template-database) |
41 | 52 |
|
42 | | -## Files to Review |
43 | | - |
44 | | -- [`PDFReportGenerator.ini`](./PDFReportGenerator.ini) defines configuration settings used to generate a report. |
45 | | - In your product, you can implement these settings as |
46 | | -- [`Layout.repx`](./Layout.repx) contains visual report layout and database connection data. |
47 | | -- [`Delphi/PDFReportGenerator.dpr`](./Delphi/PDFReportGenerator.dpr) generates a report in headless (non-GUI) mode. |
48 | | - |
49 | 53 |
|
50 | 54 | <!-- feedback --> |
51 | 55 | ## Does This Example Address Your Development Requirements/Objectives? |
|
0 commit comments