This tutorial demonstrates how to design a bill report with the QR payment part and receipt implemented according to Swiss guidelines v2.0. Follow the steps below to create a report based on the Swiss QR Bill demo from the DevExpress Demo Center.
Add a Report
To get started with this tutorial, open an existing reporting application or create a new application (the Add a Report to Your .NET Application section explains how to create a reporting application on different platforms).
Set the Report Footer band's PrintAtBottom property to true to display the band's content at the bottom of the report's pages.
Add the XRPanel control to the Report Footer band's bottom right-hand corner. The panel's and report page's right and bottom borders should coincide.
Set the panel's Size | Height property to 1050 and the Size | Width property - to 1480. This size corresponds to A6 format.
Add one more XRPanel control to the Report Footer band's bottom left-hand corner. The panel's and report page's left and bottom borders should coincide.
Set the panel's Size | Height property to 1050 and the Size | Width property - to 620.
Set the panels' Behavior | CanGrow property to false to fix the panels' size regardless their content.
Prepare Data Source
The QR payment part and receipt should contain account, creditor and debtor information. To provide data for these sections, include it in the report's data source.
The Swiss QR Bill demo uses the BillDS business class as the report's data source. Copy the SwissQRReportDataSource.cs/SwissQRReportDataSource.vb file with this class from the C:\Users\Public\Documents\DevExpress Demos 19.2\Components\Reporting\CS\DevExpress.DemoReports\SwissQRCode folder to your project to use this tutorial.