|
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 |
| 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. |
| 11 | + |
| 12 | +The example includes projects for both [Delphi](./Delphi) and [C++Builder](./CPB). |
| 13 | + |
| 14 | +>  |
| 15 | +
|
| 16 | +## Prerequisites |
| 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) |
| 19 | + |
| 20 | + |
| 21 | +## Implementation Details |
| 22 | + |
| 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 | + |
| 26 | +### Prepare a Template Report Layout |
| 27 | + |
| 28 | +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) |
| 30 | +or [in a database](https://github.com/DevExpress-Examples/vcl-reports-store-layout-template-database). |
| 31 | + |
| 32 | +This example loads a report layout from the [`Layout.repx`](./Layout.repx) file. |
| 33 | + |
| 34 | +### |
| 35 | + |
| 36 | +## Documentation and Examples |
| 37 | + |
| 38 | +- [Documentation: DevExpress VCL Reports](https://docs.devexpress.com/VCL/405469/ExpressReports/vcl-reports) |
| 39 | +- [Example: Store Report Layouts within Text Files](https://github.com/DevExpress-Examples/vcl-reports-store-layout-template-file) |
| 40 | +- [Example: Store Report Layouts in a Database](https://github.com/DevExpress-Examples/vcl-reports-store-layout-template-database) |
| 41 | + |
| 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 | + |
7 | 49 |
|
8 | | - |
9 | 50 | <!-- feedback --> |
10 | | -## Does this example address your development requirements/objectives? |
| 51 | +## Does This Example Address Your Development Requirements/Objectives? |
11 | 52 |
|
12 | 53 | [<img src="https://www.devexpress.com/support/examples/i/yes-button.svg"/>](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=vcl-reports-filter-export-report-pdf-in-console-app&~~~was_helpful=yes) [<img src="https://www.devexpress.com/support/examples/i/no-button.svg"/>](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=vcl-reports-filter-export-report-pdf-in-console-app&~~~was_helpful=no) |
13 | 54 |
|
|
0 commit comments